Package net.minecraft.block
Class BeehiveBlock
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Block>
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.ContainerBlock
-
- net.minecraft.block.BeehiveBlock
-
- All Implemented Interfaces:
ITileEntityProvider,IItemProvider,IForgeBlock,IForgeRegistryEntry<Block>
public class BeehiveBlock 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 DirectionPropertyFACINGstatic IntegerPropertyHONEY_LEVELprivate static Direction[]SPAWN_DIRECTIONS-
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 BeehiveBlock(AbstractBlock.Properties p_i225756_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidangerNearbyBees(World p_226881_1_, BlockPos p_226881_2_)voidanimateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, java.util.Random p_180655_4_)protected voidcreateBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)static voiddropHoneycomb(World p_226878_0_, BlockPos p_226878_1_)intgetAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_)java.util.List<ItemStack>getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)static DirectiongetRandomOffset(java.util.Random p_235331_0_)BlockRenderTypegetRenderShape(BlockState p_149645_1_)BlockStategetStateForPlacement(BlockItemUseContext p_196258_1_)booleanhasAnalogOutputSignal(BlockState p_149740_1_)private booleanhiveContainsBees(World p_226882_1_, BlockPos p_226882_2_)BlockStatemirror(BlockState blockState, Mirror mirror)TileEntitynewBlockEntity(IBlockReader p_196283_1_)voidplayerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_)voidplayerWillDestroy(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_)voidreleaseBeesAndResetHoneyLevel(World p_226877_1_, BlockState p_226877_2_, BlockPos p_226877_3_, PlayerEntity p_226877_4_, BeehiveTileEntity.State p_226877_5_)voidresetHoneyLevel(World p_226876_1_, BlockState p_226876_2_, BlockPos p_226876_3_)BlockStaterotate(BlockState blockState, Rotation rotation)private voidspawnFluidParticle(World p_226875_1_, double p_226875_2_, double p_226875_4_, double p_226875_6_, double p_226875_8_, double p_226875_10_)private voidspawnParticle(World p_226880_1_, BlockPos p_226880_2_, VoxelShape p_226880_3_, double p_226880_4_)private voidtrySpawnDripParticles(World p_226879_1_, BlockPos p_226879_2_, BlockState p_226879_3_)BlockStateupdateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)ActionResultTypeuse(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
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, 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, canSurvive, defaultMaterialColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isAir, isEntityBlock, isPathfindable, isSignalSource, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, 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
-
SPAWN_DIRECTIONS
private static final Direction[] SPAWN_DIRECTIONS
-
FACING
public static final DirectionProperty FACING
-
HONEY_LEVEL
public static final IntegerProperty HONEY_LEVEL
-
-
Constructor Detail
-
BeehiveBlock
public BeehiveBlock(AbstractBlock.Properties p_i225756_1_)
-
-
Method Detail
-
hasAnalogOutputSignal
public boolean hasAnalogOutputSignal(BlockState p_149740_1_)
- Overrides:
hasAnalogOutputSignalin classAbstractBlock
-
getAnalogOutputSignal
public int getAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_)
- Overrides:
getAnalogOutputSignalin classAbstractBlock
-
rotate
public BlockState rotate(BlockState blockState, Rotation rotation)
- Overrides:
rotatein classAbstractBlock
-
mirror
public BlockState mirror(BlockState blockState, Mirror mirror)
- Overrides:
mirrorin classAbstractBlock
-
playerDestroy
public void playerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, @Nullable TileEntity p_180657_5_, ItemStack p_180657_6_)
- Overrides:
playerDestroyin classBlock
-
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:
usein classAbstractBlock
-
releaseBeesAndResetHoneyLevel
public void releaseBeesAndResetHoneyLevel(World p_226877_1_, BlockState p_226877_2_, BlockPos p_226877_3_, @Nullable PlayerEntity p_226877_4_, BeehiveTileEntity.State p_226877_5_)
-
resetHoneyLevel
public void resetHoneyLevel(World p_226876_1_, BlockState p_226876_2_, BlockPos p_226876_3_)
-
animateTick
public void animateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, java.util.Random p_180655_4_)
- Overrides:
animateTickin classBlock
-
trySpawnDripParticles
private void trySpawnDripParticles(World p_226879_1_, BlockPos p_226879_2_, BlockState p_226879_3_)
-
spawnParticle
private void spawnParticle(World p_226880_1_, BlockPos p_226880_2_, VoxelShape p_226880_3_, double p_226880_4_)
-
spawnFluidParticle
private void spawnFluidParticle(World p_226875_1_, double p_226875_2_, double p_226875_4_, double p_226875_6_, double p_226875_8_, double p_226875_10_)
-
getStateForPlacement
public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
- Overrides:
getStateForPlacementin classBlock
-
createBlockStateDefinition
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
- Overrides:
createBlockStateDefinitionin classBlock
-
getRenderShape
public BlockRenderType getRenderShape(BlockState p_149645_1_)
- Overrides:
getRenderShapein classContainerBlock
-
newBlockEntity
@Nullable public TileEntity newBlockEntity(IBlockReader p_196283_1_)
-
playerWillDestroy
public void playerWillDestroy(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_)
- Overrides:
playerWillDestroyin classBlock
-
getDrops
public java.util.List<ItemStack> getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
- Overrides:
getDropsin classAbstractBlock
-
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:
updateShapein classAbstractBlock
-
getRandomOffset
public static Direction getRandomOffset(java.util.Random p_235331_0_)
-
-