Class ModTrappedChestBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.AbstractChestBlock<net.minecraft.world.level.block.entity.ChestBlockEntity>
net.minecraft.world.level.block.ChestBlock
com.idark.valoria.registries.block.types.ModTrappedChestBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement
,net.minecraft.world.level.block.BucketPickup
,net.minecraft.world.level.block.EntityBlock
,net.minecraft.world.level.block.LiquidBlockContainer
,net.minecraft.world.level.block.SimpleWaterloggedBlock
,net.minecraft.world.level.ItemLike
,net.minecraftforge.common.extensions.IForgeBlock
,net.minecraftforge.common.extensions.IForgeBucketPickup
public class ModTrappedChestBlock
extends net.minecraft.world.level.block.ChestBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKey
Nested 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.OffsetFunction, 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.StatePredicate
-
Field Summary
Fields inherited from class net.minecraft.world.level.block.ChestBlock
AABB, AABB_HEIGHT, AABB_OFFSET, EAST_AABB, EVENT_SET_OPEN_COUNT, FACING, NORTH_AABB, SOUTH_AABB, TYPE, WATERLOGGED, WEST_AABB
Fields inherited from class net.minecraft.world.level.block.AbstractChestBlock
blockEntityType
Fields 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
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
ConstructorDescriptionModTrappedChestBlock
(net.minecraft.world.level.block.state.BlockBehaviour.Properties pProperties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends net.minecraft.world.level.block.entity.ChestBlockEntity>> pBlockEntityType) -
Method Summary
Modifier and TypeMethodDescriptionint
getDirectSignal
(net.minecraft.world.level.block.state.BlockState pBlockState, net.minecraft.world.level.BlockGetter pBlockAccess, net.minecraft.core.BlockPos pPos, net.minecraft.core.Direction pSide) Deprecated.protected net.minecraft.stats.Stat<net.minecraft.resources.ResourceLocation>
int
getSignal
(net.minecraft.world.level.block.state.BlockState pBlockState, net.minecraft.world.level.BlockGetter pBlockAccess, net.minecraft.core.BlockPos pPos, net.minecraft.core.Direction pSide) Deprecated.call viaBlockBehaviour.BlockStateBase.getSignal(net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos, net.minecraft.core.Direction)
whenever possible.boolean
isSignalSource
(net.minecraft.world.level.block.state.BlockState pState) Deprecated.call viaBlockBehaviour.BlockStateBase.isSignalSource()
whenever possible.net.minecraft.world.level.block.entity.BlockEntity
newBlockEntity
(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState) Methods inherited from class net.minecraft.world.level.block.ChestBlock
blockEntityType, combine, createBlockStateDefinition, getAnalogOutputSignal, getBlockType, getConnectedDirection, getContainer, getFluidState, getMenuProvider, getRenderShape, getShape, getStateForPlacement, getTicker, hasAnalogOutputSignal, isChestBlockedAt, isPathfindable, mirror, onRemove, opennessCombiner, rotate, setPlacedBy, tick, updateShape, use
Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, triggerEvent
Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, neighborChanged, onPlace, onProjectileHit, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, useShapeForLightOcclusion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.block.EntityBlock
getListener
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSound
Methods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Constructor Details
-
ModTrappedChestBlock
public ModTrappedChestBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties pProperties, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends net.minecraft.world.level.block.entity.ChestBlockEntity>> pBlockEntityType)
-
-
Method Details
-
getOpenChestStat
protected net.minecraft.stats.Stat<net.minecraft.resources.ResourceLocation> getOpenChestStat()- Overrides:
getOpenChestStat
in classnet.minecraft.world.level.block.ChestBlock
-
isSignalSource
public boolean isSignalSource(net.minecraft.world.level.block.state.BlockState pState) Deprecated.call viaBlockBehaviour.BlockStateBase.isSignalSource()
whenever possible. Implementing/overriding is fine.Can this block provide power. Only wire currently seems to have this change based on its state.- Overrides:
isSignalSource
in classnet.minecraft.world.level.block.state.BlockBehaviour
-
getSignal
public int getSignal(net.minecraft.world.level.block.state.BlockState pBlockState, net.minecraft.world.level.BlockGetter pBlockAccess, net.minecraft.core.BlockPos pPos, net.minecraft.core.Direction pSide) Deprecated.call viaBlockBehaviour.BlockStateBase.getSignal(net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos, net.minecraft.core.Direction)
whenever possible. Implementing/overriding is fine.- Overrides:
getSignal
in classnet.minecraft.world.level.block.state.BlockBehaviour
-
getDirectSignal
public int getDirectSignal(net.minecraft.world.level.block.state.BlockState pBlockState, net.minecraft.world.level.BlockGetter pBlockAccess, net.minecraft.core.BlockPos pPos, net.minecraft.core.Direction pSide) Deprecated.call viaBlockBehaviour.BlockStateBase.getDirectSignal(net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos, net.minecraft.core.Direction)
whenever possible. Implementing/overriding is fine.- Overrides:
getDirectSignal
in classnet.minecraft.world.level.block.state.BlockBehaviour
-
newBlockEntity
@Nullable public net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState) - Specified by:
newBlockEntity
in interfacenet.minecraft.world.level.block.EntityBlock
- Overrides:
newBlockEntity
in classnet.minecraft.world.level.block.ChestBlock
-
BlockBehaviour.BlockStateBase.getDirectSignal(net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos, net.minecraft.core.Direction)
whenever possible.