类 CrafterBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.CrafterBlock
- 所有已实现的接口:
FeatureElement
,EntityBlock
,ItemLike
,IForgeBlock
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.Block
Block.ShapePairKey
从类继承的嵌套类/接口 net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<CrafterBlock> private static final int
static final BooleanProperty
private static final int
private static final int
private static final EnumProperty
<FrontAndTop> private static final RecipeCache
static final BooleanProperty
从类继承的字段 net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPS
从类继承的字段 net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected com.mojang.serialization.MapCodec
<CrafterBlock> codec()
protected void
protected void
dispenseFrom
(BlockState p_313036_, ServerLevel p_310451_, BlockPos p_310774_) private void
dispenseItem
(ServerLevel p_336186_, BlockPos p_312358_, CrafterBlockEntity p_309887_, ItemStack p_310474_, BlockState p_310667_, RecipeHolder<?> p_329387_) protected int
getAnalogOutputSignal
(BlockState p_311332_, Level p_310277_, BlockPos p_312038_) static Optional
<RecipeHolder<CraftingRecipe>> getPotentialResults
(ServerLevel p_367007_, CraftingInput p_342419_) getStateForPlacement
(BlockPlaceContext p_311294_) <T extends BlockEntity>
BlockEntityTicker<T> getTicker
(Level p_310928_, BlockState p_311648_, BlockEntityType<T> p_310343_) protected boolean
hasAnalogOutputSignal
(BlockState p_309929_) protected BlockState
mirror
(BlockState p_310178_, Mirror p_311418_) protected void
neighborChanged
(BlockState p_309741_, Level p_312714_, BlockPos p_310958_, Block p_313237_, Orientation p_364282_, boolean p_309615_) newBlockEntity
(BlockPos p_311818_, BlockState p_310225_) protected void
onRemove
(BlockState p_310019_, Level p_310489_, BlockPos p_312335_, BlockState p_311081_, boolean p_310350_) protected BlockState
rotate
(BlockState p_312403_, Rotation p_309910_) private void
setBlockEntityTriggered
(BlockEntity p_312888_, boolean p_312611_) void
setPlacedBy
(Level p_311617_, BlockPos p_313069_, BlockState p_310230_, LivingEntity p_310379_, ItemStack p_311227_) protected void
tick
(BlockState p_310321_, ServerLevel p_312701_, BlockPos p_311281_, RandomSource p_311092_) protected InteractionResult
useWithoutItem
(BlockState p_309704_, Level p_312700_, BlockPos p_310945_, Player p_312953_, BlockHitResult p_309965_) 从类继承的方法 net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEvent
从类继承的方法 net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, updateShape, useItemOn, useShapeForLightOcclusion
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.block.EntityBlock
getListener
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
-
字段详细资料
-
CODEC
-
CRAFTING
-
TRIGGERED
-
ORIENTATION
-
MAX_CRAFTING_TICKS
private static final int MAX_CRAFTING_TICKS- 另请参阅:
-
CRAFTING_TICK_DELAY
private static final int CRAFTING_TICK_DELAY- 另请参阅:
-
RECIPE_CACHE
-
CRAFTER_ADVANCEMENT_DIAMETER
private static final int CRAFTER_ADVANCEMENT_DIAMETER- 另请参阅:
-
-
构造器详细资料
-
CrafterBlock
-
-
方法详细资料
-
codec
- 指定者:
codec
在类中BaseEntityBlock
-
hasAnalogOutputSignal
- 覆盖:
hasAnalogOutputSignal
在类中BlockBehaviour
-
getAnalogOutputSignal
- 覆盖:
getAnalogOutputSignal
在类中BlockBehaviour
-
neighborChanged
protected void neighborChanged(BlockState p_309741_, Level p_312714_, BlockPos p_310958_, Block p_313237_, @Nullable Orientation p_364282_, boolean p_309615_) - 覆盖:
neighborChanged
在类中BlockBehaviour
-
tick
protected void tick(BlockState p_310321_, ServerLevel p_312701_, BlockPos p_311281_, RandomSource p_311092_) - 覆盖:
tick
在类中BlockBehaviour
-
getTicker
@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_310928_, BlockState p_311648_, BlockEntityType<T> p_310343_) -
setBlockEntityTriggered
-
newBlockEntity
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
setPlacedBy
public void setPlacedBy(Level p_311617_, BlockPos p_313069_, BlockState p_310230_, LivingEntity p_310379_, ItemStack p_311227_) - 覆盖:
setPlacedBy
在类中Block
-
onRemove
protected void onRemove(BlockState p_310019_, Level p_310489_, BlockPos p_312335_, BlockState p_311081_, boolean p_310350_) - 覆盖:
onRemove
在类中BlockBehaviour
-
useWithoutItem
protected InteractionResult useWithoutItem(BlockState p_309704_, Level p_312700_, BlockPos p_310945_, Player p_312953_, BlockHitResult p_309965_) - 覆盖:
useWithoutItem
在类中BlockBehaviour
-
dispenseFrom
-
getPotentialResults
public static Optional<RecipeHolder<CraftingRecipe>> getPotentialResults(ServerLevel p_367007_, CraftingInput p_342419_) -
dispenseItem
private void dispenseItem(ServerLevel p_336186_, BlockPos p_312358_, CrafterBlockEntity p_309887_, ItemStack p_310474_, BlockState p_310667_, RecipeHolder<?> p_329387_) -
rotate
- 覆盖:
rotate
在类中BlockBehaviour
-
mirror
- 覆盖:
mirror
在类中BlockBehaviour
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-