Package org.cyclops.colossalchests.block
Class ColossalChest
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
org.cyclops.cyclopscore.block.BlockWithEntity
org.cyclops.cyclopscore.block.BlockWithEntityGui
org.cyclops.colossalchests.block.ColossalChest
- All Implemented Interfaces:
net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeBlock,IBlockChestMaterial,org.cyclops.cyclopscore.block.IBlockGui,org.cyclops.cyclopscore.block.multi.CubeDetector.IDetectionListener
public class ColossalChest
extends org.cyclops.cyclopscore.block.BlockWithEntityGui
implements org.cyclops.cyclopscore.block.multi.CubeDetector.IDetectionListener, IBlockChestMaterial
A machine that can infuse stuff with blood.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface org.cyclops.cyclopscore.block.IBlockGui
org.cyclops.cyclopscore.block.IBlockGui.IBlockContainerProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.BooleanPropertyFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS, UPDATE_SUPPRESS_LIGHTFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER -
Constructor Summary
ConstructorsConstructorDescriptionColossalChest(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, ChestMaterial material) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPlayerChatError(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.Component error) static voidaddPlayerChatError(ChestMaterial material, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) Show the structure forming error in the given player chat window.static booleancanPlace(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos) booleancanSurvive(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) voiddestroy(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) static net.minecraft.core.BlockPosgetCoreLocation(ChestMaterial material, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos) Get the core block location.floatgetExplosionResistance(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion) @Nullable net.minecraft.world.MenuProvidergetMenuProvider(net.minecraft.world.level.block.state.BlockState p_49234_, net.minecraft.world.level.Level p_49235_, net.minecraft.core.BlockPos p_49236_) net.minecraft.world.level.block.RenderShapegetRenderShape(net.minecraft.world.level.block.state.BlockState blockState) <T extends net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntityTicker<T>getTicker(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType) booleanisValidSpawn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.SpawnPlacements.Type type, net.minecraft.world.entity.EntityType<?> entityType) voidonBlockExploded(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion) voidonDetect(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos location, net.minecraft.core.Vec3i size, boolean valid, net.minecraft.core.BlockPos originCorner) voidonPlace(net.minecraft.world.level.block.state.BlockState blockStateNew, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockStateOld, boolean isMoving) voidonRemove(net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState newState, boolean isMoving) booleanpropagatesSkylightDown(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockReader, net.minecraft.core.BlockPos blockPos) voidsetPlacedBy(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.item.ItemStack stack) booleanshouldDisplayFluidOverlay(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState) voidtick(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) static org.cyclops.cyclopscore.block.multi.DetectionResulttriggerDetector(ChestMaterial material, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, boolean valid, net.minecraft.world.entity.player.Player player) net.minecraft.world.InteractionResultuse(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult rayTraceResult) voidwriteExtraGuiData(net.minecraft.network.FriendlyByteBuf packetBuffer, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos blockPos, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult rayTraceResult) Methods inherited from class org.cyclops.cyclopscore.block.BlockWithEntity
getCloneItemStack, getDroppedItemStack, getDroppedItemStackNbt, isPersistNbt, newBlockEntity, playerWillDestroyMethods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, triggerEventMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getPistonPushReaction, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface org.cyclops.cyclopscore.block.IBlockGui
getOpenStatMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getEnchantPowerBonus, getExpDrop, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onCaughtFire, onDestroyedByPlayer, onNeighborChange, rotate, setBedOccupied, shouldCheckWeakPower, supportsExternalFaceHiding
-
Field Details
-
ENABLED
public static final net.minecraft.world.level.block.state.properties.BooleanProperty ENABLED
-
-
Constructor Details
-
ColossalChest
public ColossalChest(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, ChestMaterial material)
-
-
Method Details
-
getMenuProvider
@Nullable public @Nullable net.minecraft.world.MenuProvider getMenuProvider(net.minecraft.world.level.block.state.BlockState p_49234_, net.minecraft.world.level.Level p_49235_, net.minecraft.core.BlockPos p_49236_) - Overrides:
getMenuProviderin classnet.minecraft.world.level.block.BaseEntityBlock
-
getTicker
@Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType) - Specified by:
getTickerin interfacenet.minecraft.world.level.block.EntityBlock
-
tick
public void tick(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) - Overrides:
tickin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getDescriptionId
- Overrides:
getDescriptionIdin classnet.minecraft.world.level.block.Block
-
getMaterial
- Specified by:
getMaterialin interfaceIBlockChestMaterial
-
createBlockStateDefinition
protected void createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-
canPlace
public static boolean canPlace(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos) -
getRenderShape
public net.minecraft.world.level.block.RenderShape getRenderShape(net.minecraft.world.level.block.state.BlockState blockState) - Overrides:
getRenderShapein classorg.cyclops.cyclopscore.block.BlockWithEntity
-
propagatesSkylightDown
public boolean propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockReader, net.minecraft.core.BlockPos blockPos) - Overrides:
propagatesSkylightDownin classnet.minecraft.world.level.block.Block
-
isValidSpawn
public boolean isValidSpawn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.SpawnPlacements.Type type, net.minecraft.world.entity.EntityType<?> entityType) - Specified by:
isValidSpawnin interfacenet.minecraftforge.common.extensions.IForgeBlock
-
shouldDisplayFluidOverlay
public boolean shouldDisplayFluidOverlay(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState) - Specified by:
shouldDisplayFluidOverlayin interfacenet.minecraftforge.common.extensions.IForgeBlock
-
triggerDetector
public static org.cyclops.cyclopscore.block.multi.DetectionResult triggerDetector(ChestMaterial material, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, boolean valid, @Nullable net.minecraft.world.entity.player.Player player) -
setPlacedBy
public void setPlacedBy(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.item.ItemStack stack) - Overrides:
setPlacedByin classnet.minecraft.world.level.block.Block
-
onPlace
public void onPlace(net.minecraft.world.level.block.state.BlockState blockStateNew, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockStateOld, boolean isMoving) - Overrides:
onPlacein classnet.minecraft.world.level.block.state.BlockBehaviour
-
onDetect
public void onDetect(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos location, net.minecraft.core.Vec3i size, boolean valid, net.minecraft.core.BlockPos originCorner) - Specified by:
onDetectin interfaceorg.cyclops.cyclopscore.block.multi.CubeDetector.IDetectionListener
-
getCoreLocation
@Nullable public static net.minecraft.core.BlockPos getCoreLocation(ChestMaterial material, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos) Get the core block location.- Parameters:
material- The chest material.world- The world.blockPos- The start position to search from.- Returns:
- The found location.
-
addPlayerChatError
public static void addPlayerChatError(ChestMaterial material, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) Show the structure forming error in the given player chat window.- Parameters:
material- The chest material.world- The world.blockPos- The start position.player- The player.hand- The used hand.
-
addPlayerChatError
public static void addPlayerChatError(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.Component error) -
writeExtraGuiData
public void writeExtraGuiData(net.minecraft.network.FriendlyByteBuf packetBuffer, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos blockPos, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult rayTraceResult) - Specified by:
writeExtraGuiDatain interfaceorg.cyclops.cyclopscore.block.IBlockGui
-
use
public net.minecraft.world.InteractionResult use(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult rayTraceResult) - Overrides:
usein classorg.cyclops.cyclopscore.block.BlockWithEntityGui
-
destroy
public void destroy(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) - Overrides:
destroyin classnet.minecraft.world.level.block.Block
-
onBlockExploded
public void onBlockExploded(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion) - Specified by:
onBlockExplodedin interfacenet.minecraftforge.common.extensions.IForgeBlock
-
getExplosionResistance
public float getExplosionResistance(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion) - Specified by:
getExplosionResistancein interfacenet.minecraftforge.common.extensions.IForgeBlock
-
canSurvive
public boolean canSurvive(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos) - Overrides:
canSurvivein classnet.minecraft.world.level.block.state.BlockBehaviour
-
onRemove
public void onRemove(net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState newState, boolean isMoving) - Overrides:
onRemovein classnet.minecraft.world.level.block.state.BlockBehaviour
-