类 TurtleEggBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.TurtleEggBlock
-
- 所有已实现的接口:
ItemConvertible
public class TurtleEggBlock extends Block
- Mappings:
Namespace Name official cghintermediary net/minecraft/class_2542named net/minecraft/block/TurtleEggBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 static IntPropertyEGGSstatic intfield_31272static intfield_31273static intfield_31274static IntPropertyHATCHprivate static VoxelShapeLARGE_SHAPEprivate static VoxelShapeSMALL_SHAPE-
从类继承的字段 net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
-
从类继承的字段 net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
-
构造器概要
构造器 构造器 说明 TurtleEggBlock(AbstractBlock.Settings settings)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable 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)@Nullable 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)-
从类继承的方法 net.minecraft.block.Block
addStacksForDisplay, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onPlaced, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
-
从类继承的方法 net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate, scheduledTick
-
-
-
-
字段详细资料
-
field_31272
public static final int field_31272
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLcgh;a:Iintermediary field_31272Lnet/minecraft/class_2542;field_31272:Inamed field_31272Lnet/minecraft/block/TurtleEggBlock;field_31272:I
-
field_31273
public static final int field_31273
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLcgh;b:Iintermediary field_31273Lnet/minecraft/class_2542;field_31273:Inamed field_31273Lnet/minecraft/block/TurtleEggBlock;field_31273:I
-
field_31274
public static final int field_31274
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLcgh;c:Iintermediary field_31274Lnet/minecraft/class_2542;field_31274:Inamed field_31274Lnet/minecraft/block/TurtleEggBlock;field_31274:I
-
SMALL_SHAPE
private static final VoxelShape SMALL_SHAPE
- Mappings:
Namespace Name Mixin selector official fLcgh;f:Ldmt;intermediary field_11712Lnet/minecraft/class_2542;field_11712:Lnet/minecraft/class_265;named SMALL_SHAPELnet/minecraft/block/TurtleEggBlock;SMALL_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
LARGE_SHAPE
private static final VoxelShape LARGE_SHAPE
- Mappings:
Namespace Name Mixin selector official gLcgh;g:Ldmt;intermediary field_11709Lnet/minecraft/class_2542;field_11709:Lnet/minecraft/class_265;named LARGE_SHAPELnet/minecraft/block/TurtleEggBlock;LARGE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
HATCH
public static final IntProperty HATCH
- Mappings:
Namespace Name Mixin selector official dLcgh;d:Lckr;intermediary field_11711Lnet/minecraft/class_2542;field_11711:Lnet/minecraft/class_2758;named HATCHLnet/minecraft/block/TurtleEggBlock;HATCH:Lnet/minecraft/state/property/IntProperty;
-
EGGS
public static final IntProperty EGGS
- Mappings:
Namespace Name Mixin selector official eLcgh;e:Lckr;intermediary field_11710Lnet/minecraft/class_2542;field_11710:Lnet/minecraft/class_2758;named EGGSLnet/minecraft/block/TurtleEggBlock;EGGS:Lnet/minecraft/state/property/IntProperty;
-
-
构造器详细资料
-
TurtleEggBlock
public TurtleEggBlock(AbstractBlock.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lcjq;<init>(Lcjq$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
方法详细资料
-
onSteppedOn
public void onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.- 覆盖:
onSteppedOn在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lgb;Lasl;)Vintermediary method_9591Lnet/minecraft/class_2248;method_9591(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vnamed onSteppedOnLnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
-
onLandedUpon
public void onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
- 覆盖:
onLandedUpon在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lgb;Lasl;F)Vintermediary method_9554Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;F)Vnamed onLandedUponLnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
-
tryBreakEgg
private void tryBreakEgg(World world, BlockPos pos, Entity entity, int inverseChance)
- Mappings:
Namespace Name Mixin selector official aLcgh;a(Lbvr;Lgb;Lasl;I)Vintermediary method_10834Lnet/minecraft/class_2542;method_10834(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;I)Vnamed tryBreakEggLnet/minecraft/block/TurtleEggBlock;tryBreakEgg(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;I)V
-
breakEgg
private void breakEgg(World world, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official aLcgh;a(Lbvr;Lgb;Lcjr;)Vintermediary method_10833Lnet/minecraft/class_2542;method_10833(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed breakEggLnet/minecraft/block/TurtleEggBlock;breakEgg(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
randomTick
public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
- 覆盖:
randomTick在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjq;b(Lcjr;Labj;Lgb;Ljava/util/Random;)Vintermediary method_9514Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed randomTickLnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
isSandBelow
public static boolean isSandBelow(BlockView world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLcgh;a(Lbuv;Lgb;)Zintermediary method_10831Lnet/minecraft/class_2542;method_10831(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Znamed isSandBelowLnet/minecraft/block/TurtleEggBlock;isSandBelow(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
isSand
public static boolean isSand(BlockView world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official bLcgh;b(Lbuv;Lgb;)Zintermediary method_29952Lnet/minecraft/class_2542;method_29952(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Znamed isSandLnet/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)
- 覆盖:
onBlockAdded在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjq;b(Lcjr;Lbvr;Lgb;Lcjr;Z)Vintermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
shouldHatchProgress
private boolean shouldHatchProgress(World world)
- Mappings:
Namespace Name Mixin selector official aLcgh;a(Lbvr;)Zintermediary method_10832Lnet/minecraft/class_2542;method_10832(Lnet/minecraft/class_1937;)Znamed shouldHatchProgressLnet/minecraft/block/TurtleEggBlock;shouldHatchProgress(Lnet/minecraft/world/World;)Z
-
afterBreak
public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable @Nullable BlockEntity blockEntity, ItemStack stack)
- 覆盖:
afterBreak在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lbjf;Lgb;Lcjr;Lchp;Lbpr;)Vintermediary method_9556Lnet/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;)Vnamed afterBreakLnet/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
public boolean canReplace(BlockState state, ItemPlacementContext context)
- 覆盖:
canReplace在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbrr;)Zintermediary method_9616Lnet/minecraft/class_4970;method_9616(Lnet/minecraft/class_2680;Lnet/minecraft/class_1750;)Znamed canReplaceLnet/minecraft/block/AbstractBlock;canReplace(Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemPlacementContext;)Z
-
getPlacementState
@Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
- 覆盖:
getPlacementState在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbrr;)Lcjr;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
- 覆盖:
getOutlineShape在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;intermediary method_9530Lnet/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 getOutlineShapeLnet/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
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
- 覆盖:
appendProperties在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lcjs$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
breaksEgg
private boolean breaksEgg(World world, Entity entity)
- Mappings:
Namespace Name Mixin selector official aLcgh;a(Lbvr;Lasl;)Zintermediary method_10835Lnet/minecraft/class_2542;method_10835(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Znamed breaksEggLnet/minecraft/block/TurtleEggBlock;breaksEgg(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Z
-
-