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
- Mappings:
Namespace Name official cej
intermediary net/minecraft/class_2542
named net/minecraft/block/TurtleEggBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested 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 IntProperty
EGGS
static IntProperty
HATCH
private static VoxelShape
LARGE_SHAPE
private static VoxelShape
SMALL_SHAPE
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, 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 void
afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack)
protected void
appendProperties(StateManager.Builder<Block,BlockState> builder)
private void
breakEgg(World world, BlockPos pos, BlockState state)
private boolean
breaksEgg(World world, Entity entity)
boolean
canReplace(BlockState state, ItemPlacementContext context)
VoxelShape
getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
BlockState
getPlacementState(ItemPlacementContext ctx)
static boolean
isSand(BlockView world, BlockPos pos)
static boolean
isSandBelow(BlockView world, BlockPos pos)
void
onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
void
onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.void
randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
private boolean
shouldHatchProgress(World world)
private void
tryBreakEgg(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, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, method_33614, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onPlaced, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods 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
- Mappings:
Namespace Name Mixin selector official c
Lcej;c:Ldjn;
intermediary field_11712
Lnet/minecraft/class_2542;field_11712:Lnet/minecraft/class_265;
named SMALL_SHAPE
Lnet/minecraft/block/TurtleEggBlock;SMALL_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
LARGE_SHAPE
- Mappings:
Namespace Name Mixin selector official d
Lcej;d:Ldjn;
intermediary field_11709
Lnet/minecraft/class_2542;field_11709:Lnet/minecraft/class_265;
named LARGE_SHAPE
Lnet/minecraft/block/TurtleEggBlock;LARGE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
HATCH
- Mappings:
Namespace Name Mixin selector official a
Lcej;a:Lcit;
intermediary field_11711
Lnet/minecraft/class_2542;field_11711:Lnet/minecraft/class_2758;
named HATCH
Lnet/minecraft/block/TurtleEggBlock;HATCH:Lnet/minecraft/state/property/IntProperty;
-
EGGS
- Mappings:
Namespace Name Mixin selector official b
Lcej;b:Lcit;
intermediary field_11710
Lnet/minecraft/class_2542;field_11710:Lnet/minecraft/class_2758;
named EGGS
Lnet/minecraft/block/TurtleEggBlock;EGGS:Lnet/minecraft/state/property/IntProperty;
-
-
Constructor Details
-
TurtleEggBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lchs;<init>(Lchs$c;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
onSteppedOn
Called when an entity steps on this block.- Overrides:
onSteppedOn
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lbtv;Lfx;Laqv;)V
intermediary method_9591
Lnet/minecraft/class_2248;method_9591(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
named onSteppedOn
Lnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
-
onLandedUpon
- Overrides:
onLandedUpon
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lbtv;Lfx;Laqv;F)V
intermediary method_9554
Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;F)V
named onLandedUpon
Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
-
tryBreakEgg
- Mappings:
Namespace Name Mixin selector official a
Lcej;a(Lbtv;Lfx;Laqv;I)V
intermediary method_10834
Lnet/minecraft/class_2542;method_10834(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;I)V
named tryBreakEgg
Lnet/minecraft/block/TurtleEggBlock;tryBreakEgg(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;I)V
-
breakEgg
- Mappings:
Namespace Name Mixin selector official a
Lcej;a(Lbtv;Lfx;Lcht;)V
intermediary method_10833
Lnet/minecraft/class_2542;method_10833(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named breakEgg
Lnet/minecraft/block/TurtleEggBlock;breakEgg(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
randomTick
- Overrides:
randomTick
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lchs;b(Lcht;Laav;Lfx;Ljava/util/Random;)V
intermediary method_9514
Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named randomTick
Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
isSandBelow
- Mappings:
Namespace Name Mixin selector official a
Lcej;a(Lbsz;Lfx;)Z
intermediary method_10831
Lnet/minecraft/class_2542;method_10831(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
named isSandBelow
Lnet/minecraft/block/TurtleEggBlock;isSandBelow(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
isSand
- Mappings:
Namespace Name Mixin selector official b
Lcej;b(Lbsz;Lfx;)Z
intermediary method_29952
Lnet/minecraft/class_2542;method_29952(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
named isSand
Lnet/minecraft/block/TurtleEggBlock;isSand(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)- Overrides:
onBlockAdded
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lchs;b(Lcht;Lbtv;Lfx;Lcht;Z)V
intermediary method_9615
Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
named onBlockAdded
Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
shouldHatchProgress
- Mappings:
Namespace Name Mixin selector official a
Lcej;a(Lbtv;)Z
intermediary method_10832
Lnet/minecraft/class_2542;method_10832(Lnet/minecraft/class_1937;)Z
named shouldHatchProgress
Lnet/minecraft/block/TurtleEggBlock;shouldHatchProgress(Lnet/minecraft/world/World;)Z
-
afterBreak
public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)- Overrides:
afterBreak
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lbtv;Lbhl;Lfx;Lcht;Lcfr;Lbnv;)V
intermediary method_9556
Lnet/minecraft/class_2248;method_9556(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2586;Lnet/minecraft/class_1799;)V
named afterBreak
Lnet/minecraft/block/Block;afterBreak(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
-
canReplace
- Overrides:
canReplace
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lbpv;)Z
intermediary method_9616
Lnet/minecraft/class_4970;method_9616(Lnet/minecraft/class_2680;Lnet/minecraft/class_1750;)Z
named canReplace
Lnet/minecraft/block/AbstractBlock;canReplace(Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemPlacementContext;)Z
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lbpv;)Lcht;
intermediary method_9605
Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
named getPlacementState
Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShape
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;
intermediary method_9530
Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
named getOutlineShape
Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
appendProperties
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lchu$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
breaksEgg
- Mappings:
Namespace Name Mixin selector official a
Lcej;a(Lbtv;Laqv;)Z
intermediary method_10835
Lnet/minecraft/class_2542;method_10835(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Z
named breaksEgg
Lnet/minecraft/block/TurtleEggBlock;breaksEgg(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Z
-