public class TurtleEggBlock extends Block
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
static IntegerProperty |
EGGS |
static IntegerProperty |
HATCH |
private static VoxelShape |
MULTIPLE_EGGS_AABB |
private static VoxelShape |
ONE_EGG_AABB |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
TurtleEggBlock(AbstractBlock.Properties p_i48778_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeReplaced(BlockState p_196253_1_,
BlockItemUseContext p_196253_2_) |
private boolean |
canDestroyEgg(World p_212570_1_,
Entity p_212570_2_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
private void |
decreaseEggs(World p_203166_1_,
BlockPos p_203166_2_,
BlockState p_203166_3_) |
private void |
destroyEgg(World p_203167_1_,
BlockPos p_203167_2_,
Entity p_203167_3_,
int p_203167_4_) |
void |
fallOn(World p_180658_1_,
BlockPos p_180658_2_,
Entity p_180658_3_,
float p_180658_4_) |
VoxelShape |
getShape(BlockState p_220053_1_,
IBlockReader p_220053_2_,
BlockPos p_220053_3_,
ISelectionContext p_220053_4_) |
BlockState |
getStateForPlacement(BlockItemUseContext p_196258_1_) |
static boolean |
isSand(IBlockReader p_241473_0_,
BlockPos p_241473_1_) |
void |
onPlace(BlockState p_220082_1_,
World p_220082_2_,
BlockPos p_220082_3_,
BlockState p_220082_4_,
boolean p_220082_5_) |
static boolean |
onSand(IBlockReader p_203168_0_,
BlockPos p_203168_1_) |
void |
playerDestroy(World p_180657_1_,
PlayerEntity p_180657_2_,
BlockPos p_180657_3_,
BlockState p_180657_4_,
TileEntity p_180657_5_,
ItemStack p_180657_6_) |
void |
randomTick(BlockState p_225542_1_,
ServerWorld p_225542_2_,
BlockPos p_225542_3_,
java.util.Random p_225542_4_) |
private boolean |
shouldUpdateHatchLevel(World p_203169_1_) |
void |
stepOn(World p_176199_1_,
BlockPos p_176199_2_,
Entity p_176199_3_) |
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, 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, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onProjectileHit, onRemove, rotate, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
private static final VoxelShape ONE_EGG_AABB
private static final VoxelShape MULTIPLE_EGGS_AABB
public static final IntegerProperty HATCH
public static final IntegerProperty EGGS
public TurtleEggBlock(AbstractBlock.Properties p_i48778_1_)
public void fallOn(World p_180658_1_, BlockPos p_180658_2_, Entity p_180658_3_, float p_180658_4_)
private void destroyEgg(World p_203167_1_, BlockPos p_203167_2_, Entity p_203167_3_, int p_203167_4_)
private void decreaseEggs(World p_203166_1_, BlockPos p_203166_2_, BlockState p_203166_3_)
public void randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, java.util.Random p_225542_4_)
randomTick
in class AbstractBlock
public static boolean onSand(IBlockReader p_203168_0_, BlockPos p_203168_1_)
public static boolean isSand(IBlockReader p_241473_0_, BlockPos p_241473_1_)
public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_)
onPlace
in class AbstractBlock
private boolean shouldUpdateHatchLevel(World p_203169_1_)
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_)
playerDestroy
in class Block
public boolean canBeReplaced(BlockState p_196253_1_, BlockItemUseContext p_196253_2_)
canBeReplaced
in class AbstractBlock
@Nullable public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
getStateForPlacement
in class Block
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
getShape
in class AbstractBlock
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block