Package net.minecraft.block
Class BellBlock
- java.lang.Object
-
- All Implemented Interfaces:
ITileEntityProvider
,IItemProvider
,IForgeBlock
,IForgeRegistryEntry<Block>
public class BellBlock extends ContainerBlock
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.RenderSideCacheKey
-
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description static EnumProperty<BellAttachment>
ATTACHMENT
private static VoxelShape
BELL_BOTTOM_SHAPE
private static VoxelShape
BELL_SHAPE
private static VoxelShape
BELL_TOP_SHAPE
private static VoxelShape
CEILING_SHAPE
private static VoxelShape
EAST_WEST_BETWEEN
private static VoxelShape
EAST_WEST_FLOOR_SHAPE
static DirectionProperty
FACING
private static VoxelShape
NORTH_SOUTH_BETWEEN
private static VoxelShape
NORTH_SOUTH_FLOOR_SHAPE
static BooleanProperty
POWERED
private static VoxelShape
TO_EAST
private static VoxelShape
TO_NORTH
private static VoxelShape
TO_SOUTH
private static VoxelShape
TO_WEST
-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
-
Fields inherited from class net.minecraft.block.AbstractBlock
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description BellBlock(AbstractBlock.Properties p_i49993_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
attemptToRing(World p_226885_1_, BlockPos p_226885_2_, Direction p_226885_3_)
boolean
canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)
protected void
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
VoxelShape
getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_)
private static Direction
getConnectedDirection(BlockState p_220131_0_)
PushReaction
getPistonPushReaction(BlockState p_149656_1_)
BlockRenderType
getRenderShape(BlockState p_149645_1_)
VoxelShape
getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
BlockState
getStateForPlacement(BlockItemUseContext p_196258_1_)
private VoxelShape
getVoxelShape(BlockState p_220128_1_)
boolean
isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)
private boolean
isProperHit(BlockState p_220129_1_, Direction p_220129_2_, double p_220129_3_)
void
neighborChanged(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_)
TileEntity
newBlockEntity(IBlockReader p_196283_1_)
boolean
onHit(World p_226884_1_, BlockState p_226884_2_, BlockRayTraceResult p_226884_3_, PlayerEntity p_226884_4_, boolean p_226884_5_)
void
onProjectileHit(World p_220066_1_, BlockState p_220066_2_, BlockRayTraceResult p_220066_3_, ProjectileEntity p_220066_4_)
BlockState
updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)
ActionResultType
use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_)
-
Methods inherited from class net.minecraft.block.ContainerBlock
getMenuProvider, triggerEvent
-
Methods inherited from class net.minecraft.block.Block
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
-
Methods inherited from class net.minecraft.block.AbstractBlock
attack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getOcclusionShape, getOffsetType, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isSignalSource, mirror, onPlace, onRemove, randomTick, rotate, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, useShapeForLightOcclusion
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
-
-
-
Field Detail
-
FACING
public static final DirectionProperty FACING
-
ATTACHMENT
public static final EnumProperty<BellAttachment> ATTACHMENT
-
POWERED
public static final BooleanProperty POWERED
-
NORTH_SOUTH_FLOOR_SHAPE
private static final VoxelShape NORTH_SOUTH_FLOOR_SHAPE
-
EAST_WEST_FLOOR_SHAPE
private static final VoxelShape EAST_WEST_FLOOR_SHAPE
-
BELL_TOP_SHAPE
private static final VoxelShape BELL_TOP_SHAPE
-
BELL_BOTTOM_SHAPE
private static final VoxelShape BELL_BOTTOM_SHAPE
-
BELL_SHAPE
private static final VoxelShape BELL_SHAPE
-
NORTH_SOUTH_BETWEEN
private static final VoxelShape NORTH_SOUTH_BETWEEN
-
EAST_WEST_BETWEEN
private static final VoxelShape EAST_WEST_BETWEEN
-
TO_WEST
private static final VoxelShape TO_WEST
-
TO_EAST
private static final VoxelShape TO_EAST
-
TO_NORTH
private static final VoxelShape TO_NORTH
-
TO_SOUTH
private static final VoxelShape TO_SOUTH
-
CEILING_SHAPE
private static final VoxelShape CEILING_SHAPE
-
-
Constructor Detail
-
BellBlock
public BellBlock(AbstractBlock.Properties p_i49993_1_)
-
-
Method Detail
-
neighborChanged
public void neighborChanged(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_)
- Overrides:
neighborChanged
in classAbstractBlock
-
onProjectileHit
public void onProjectileHit(World p_220066_1_, BlockState p_220066_2_, BlockRayTraceResult p_220066_3_, ProjectileEntity p_220066_4_)
- Overrides:
onProjectileHit
in classAbstractBlock
-
use
public ActionResultType use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_)
- Overrides:
use
in classAbstractBlock
-
onHit
public boolean onHit(World p_226884_1_, BlockState p_226884_2_, BlockRayTraceResult p_226884_3_, @Nullable PlayerEntity p_226884_4_, boolean p_226884_5_)
-
isProperHit
private boolean isProperHit(BlockState p_220129_1_, Direction p_220129_2_, double p_220129_3_)
-
attemptToRing
public boolean attemptToRing(World p_226885_1_, BlockPos p_226885_2_, @Nullable Direction p_226885_3_)
-
getVoxelShape
private VoxelShape getVoxelShape(BlockState p_220128_1_)
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_)
- Overrides:
getCollisionShape
in classAbstractBlock
-
getShape
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
- Overrides:
getShape
in classAbstractBlock
-
getRenderShape
public BlockRenderType getRenderShape(BlockState p_149645_1_)
- Overrides:
getRenderShape
in classContainerBlock
-
getStateForPlacement
@Nullable public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
- Overrides:
getStateForPlacement
in classBlock
-
updateShape
public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)
- Overrides:
updateShape
in classAbstractBlock
-
canSurvive
public boolean canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)
- Overrides:
canSurvive
in classAbstractBlock
-
getConnectedDirection
private static Direction getConnectedDirection(BlockState p_220131_0_)
-
getPistonPushReaction
public PushReaction getPistonPushReaction(BlockState p_149656_1_)
- Overrides:
getPistonPushReaction
in classAbstractBlock
-
createBlockStateDefinition
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
- Overrides:
createBlockStateDefinition
in classBlock
-
newBlockEntity
@Nullable public TileEntity newBlockEntity(IBlockReader p_196283_1_)
-
isPathfindable
public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)
- Overrides:
isPathfindable
in classAbstractBlock
-
-