Package net.minecraft.block
Class TurtleEggBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.TurtleEggBlock
- All Implemented Interfaces:
ItemConvertible
public class TurtleEggBlock extends Block
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description static IntPropertyEGGSstatic IntPropertyHATCHprivate static VoxelShapeLARGE_SHAPEprivate static VoxelShapeSMALL_SHAPEFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description TurtleEggBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description voidafterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack)protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)private voidbreakEgg(World world, BlockPos pos, BlockState state)private booleanbreaksEgg(World world, Entity entity)booleancanReplace(BlockState state, ItemPlacementContext context)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)BlockStategetPlacementState(ItemPlacementContext ctx)static booleanisSand(BlockView world, BlockPos pos)static booleanisSandBelow(BlockView world, BlockPos pos)voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)voidonLandedUpon(World world, BlockPos pos, Entity entity, float distance)voidonSteppedOn(World world, BlockPos pos, Entity entity)Called when an entity steps on this block.voidrandomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)private booleanshouldHatchProgress(World world)private voidtryBreakEgg(World world, BlockPos pos, Entity entity, int inverseChance)Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onPlaced, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate, scheduledTick
-
Field Details
-
SMALL_SHAPE
-
LARGE_SHAPE
-
HATCH
-
EGGS
-
-
Constructor Details
-
TurtleEggBlock
-
-
Method Details
-
onSteppedOn
Called when an entity steps on this block.- Overrides:
onSteppedOnin classBlock
-
onLandedUpon
- Overrides:
onLandedUponin classBlock
-
tryBreakEgg
-
breakEgg
-
randomTick
- Overrides:
randomTickin classAbstractBlock
-
isSandBelow
-
isSand
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)- Overrides:
onBlockAddedin classAbstractBlock
-
shouldHatchProgress
-
afterBreak
public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)- Overrides:
afterBreakin classBlock
-
canReplace
- Overrides:
canReplacein classAbstractBlock
-
getPlacementState
- Overrides:
getPlacementStatein classBlock
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-
breaksEgg
-