public class BeehiveBlock extends ContainerBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
static DirectionProperty |
FACING |
static Direction[] |
GENERATE_DIRECTIONS |
static IntegerProperty |
HONEY_LEVEL |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Constructor and Description |
|---|
BeehiveBlock(Block.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addHoneyParticle(World p_226880_1_,
BlockPos p_226880_2_,
VoxelShape p_226880_3_,
double p_226880_4_) |
private void |
addHoneyParticle(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 void |
angerNearbyBees(World p_226881_1_,
BlockPos p_226881_2_) |
void |
animateTick(BlockState stateIn,
World worldIn,
BlockPos pos,
java.util.Random rand) |
TileEntity |
createNewTileEntity(IBlockReader worldIn) |
static void |
dropHoneyComb(World p_226878_0_,
BlockPos p_226878_1_) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
private void |
func_226879_a_(World p_226879_1_,
BlockPos p_226879_2_,
BlockState p_226879_3_) |
int |
getComparatorInputOverride(BlockState blockState,
World worldIn,
BlockPos pos) |
java.util.List<ItemStack> |
getDrops(BlockState state,
LootContext.Builder builder) |
BlockRenderType |
getRenderType(BlockState state) |
BlockState |
getStateForPlacement(BlockItemUseContext context) |
void |
harvestBlock(World worldIn,
PlayerEntity player,
BlockPos pos,
BlockState state,
TileEntity te,
ItemStack stack) |
private boolean |
hasBees(World p_226882_1_,
BlockPos p_226882_2_) |
boolean |
hasComparatorInputOverride(BlockState state) |
ActionResultType |
onBlockActivated(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player,
Hand handIn,
BlockRayTraceResult hit) |
void |
onBlockHarvested(World worldIn,
BlockPos pos,
BlockState state,
PlayerEntity player) |
void |
takeHoney(World p_226876_1_,
BlockState p_226876_2_,
BlockPos p_226876_3_) |
void |
takeHoney(World p_226877_1_,
BlockState p_226877_2_,
BlockPos p_226877_3_,
PlayerEntity p_226877_4_,
BeehiveTileEntity.State p_226877_5_) |
BlockState |
updatePostPlacement(BlockState stateIn,
Direction facing,
BlockState facingState,
IWorld worldIn,
BlockPos currentPos,
BlockPos facingPos) |
eventReceived, getContaineraddInformation, allowsMovement, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getDefaultState, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final Direction[] GENERATE_DIRECTIONS
public static final DirectionProperty FACING
public static final IntegerProperty HONEY_LEVEL
public BeehiveBlock(Block.Properties properties)
public boolean hasComparatorInputOverride(BlockState state)
hasComparatorInputOverride in class Blockpublic int getComparatorInputOverride(BlockState blockState, World worldIn, BlockPos pos)
getComparatorInputOverride in class Blockpublic void harvestBlock(World worldIn, PlayerEntity player, BlockPos pos, BlockState state, @Nullable TileEntity te, ItemStack stack)
harvestBlock in class Blockpublic ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated in class Blockpublic void takeHoney(World p_226877_1_, BlockState p_226877_2_, BlockPos p_226877_3_, @Nullable PlayerEntity p_226877_4_, BeehiveTileEntity.State p_226877_5_)
public void takeHoney(World p_226876_1_, BlockState p_226876_2_, BlockPos p_226876_3_)
public void animateTick(BlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick in class Blockprivate void func_226879_a_(World p_226879_1_, BlockPos p_226879_2_, BlockState p_226879_3_)
private void addHoneyParticle(World p_226880_1_, BlockPos p_226880_2_, VoxelShape p_226880_3_, double p_226880_4_)
private void addHoneyParticle(World p_226875_1_, double p_226875_2_, double p_226875_4_, double p_226875_6_, double p_226875_8_, double p_226875_10_)
public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement in class Blockprotected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Blockpublic BlockRenderType getRenderType(BlockState state)
getRenderType in class ContainerBlock@Nullable public TileEntity createNewTileEntity(IBlockReader worldIn)
public void onBlockHarvested(World worldIn, BlockPos pos, BlockState state, PlayerEntity player)
onBlockHarvested in class Blockpublic java.util.List<ItemStack> getDrops(BlockState state, LootContext.Builder builder)
public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement in class Block