类 LiquidBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.LiquidBlock
- 所有已实现的接口:
FeatureElement
,BucketPickup
,ItemLike
,IForgeBlock
,IForgeBucketPickup
-
嵌套类概要
从类继承的嵌套类/接口 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
<LiquidBlock> private static final com.mojang.serialization.Codec
<FlowingFluid> private final FlowingFluid
已过时。private boolean
static final IntegerProperty
static final com.google.common.collect.ImmutableList
<Direction> static final VoxelShape
private final List
<FluidState> 从类继承的字段 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
-
构造器概要
构造器构造器说明LiquidBlock
(Supplier<? extends FlowingFluid> p_54694_, BlockBehaviour.Properties p_54695_) LiquidBlock
(FlowingFluid p_54694_, BlockBehaviour.Properties p_54695_) 已过时。 -
方法概要
修饰符和类型方法说明com.mojang.serialization.MapCodec
<LiquidBlock> codec()
protected void
private void
fizz
(LevelAccessor p_54701_, BlockPos p_54702_) protected VoxelShape
getCollisionShape
(BlockState p_54760_, BlockGetter p_54761_, BlockPos p_54762_, CollisionContext p_54763_) getDrops
(BlockState p_54720_, LootParams.Builder p_287727_) getFluid()
protected FluidState
getFluidState
(BlockState p_54765_) protected RenderShape
getRenderShape
(BlockState p_54738_) protected VoxelShape
getShape
(BlockState p_54749_, BlockGetter p_54750_, BlockPos p_54751_, CollisionContext p_54752_) protected void
protected boolean
isPathfindable
(BlockState p_54704_, PathComputationType p_54707_) protected boolean
isRandomlyTicking
(BlockState p_54732_) protected void
neighborChanged
(BlockState p_54709_, Level p_54710_, BlockPos p_54711_, Block p_54712_, Orientation p_368724_, boolean p_54714_) protected void
onPlace
(BlockState p_54754_, Level p_54755_, BlockPos p_54756_, BlockState p_54757_, boolean p_54758_) pickupBlock
(Player p_299124_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) protected boolean
propagatesSkylightDown
(BlockState p_54745_) protected void
randomTick
(BlockState p_221410_, ServerLevel p_221411_, BlockPos p_221412_, RandomSource p_221413_) private boolean
shouldSpreadLiquid
(Level p_54697_, BlockPos p_54698_, BlockState p_54699_) 已过时。protected boolean
skipRendering
(BlockState p_54716_, BlockState p_54717_, Direction p_54718_) protected BlockState
updateShape
(BlockState p_54723_, LevelReader p_363921_, ScheduledTickAccess p_363294_, BlockPos p_54727_, Direction p_54724_, BlockPos p_54728_, BlockState p_54725_, RandomSource p_364601_) 从类继承的方法 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, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, 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, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getDescriptionId, getDestroyProgress, getDirectSignal, getEntityInsideCollisionShape, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isSignalSource, mirror, onExplosionHit, onProjectileHit, onRemove, properties, propertiesCodec, requiredFeatures, rotate, simpleCodec, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItem
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 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
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSound
-
字段详细资料
-
FLOWING_FLUID
-
CODEC
-
LEVEL
-
fluid
已过时。 -
stateCache
-
STABLE_SHAPE
-
POSSIBLE_FLOW_DIRECTIONS
-
supplier
-
fluidStateCacheInitialized
private boolean fluidStateCacheInitialized
-
-
构造器详细资料
-
LiquidBlock
已过时。 -
LiquidBlock
- 参数:
p_54694_
- A fluid supplier such asRegistryObject<FlowingFluid>
-
-
方法详细资料
-
codec
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState p_54760_, BlockGetter p_54761_, BlockPos p_54762_, CollisionContext p_54763_) - 覆盖:
getCollisionShape
在类中BlockBehaviour
-
isRandomlyTicking
- 覆盖:
isRandomlyTicking
在类中BlockBehaviour
-
randomTick
protected void randomTick(BlockState p_221410_, ServerLevel p_221411_, BlockPos p_221412_, RandomSource p_221413_) - 覆盖:
randomTick
在类中BlockBehaviour
-
propagatesSkylightDown
- 覆盖:
propagatesSkylightDown
在类中BlockBehaviour
-
isPathfindable
- 覆盖:
isPathfindable
在类中BlockBehaviour
-
getFluidState
- 覆盖:
getFluidState
在类中BlockBehaviour
-
skipRendering
- 覆盖:
skipRendering
在类中BlockBehaviour
-
getRenderShape
- 覆盖:
getRenderShape
在类中BlockBehaviour
-
getDrops
- 覆盖:
getDrops
在类中BlockBehaviour
-
getShape
protected VoxelShape getShape(BlockState p_54749_, BlockGetter p_54750_, BlockPos p_54751_, CollisionContext p_54752_) - 覆盖:
getShape
在类中BlockBehaviour
-
onPlace
protected void onPlace(BlockState p_54754_, Level p_54755_, BlockPos p_54756_, BlockState p_54757_, boolean p_54758_) - 覆盖:
onPlace
在类中BlockBehaviour
-
updateShape
protected BlockState updateShape(BlockState p_54723_, LevelReader p_363921_, ScheduledTickAccess p_363294_, BlockPos p_54727_, Direction p_54724_, BlockPos p_54728_, BlockState p_54725_, RandomSource p_364601_) - 覆盖:
updateShape
在类中BlockBehaviour
-
neighborChanged
protected void neighborChanged(BlockState p_54709_, Level p_54710_, BlockPos p_54711_, Block p_54712_, @Nullable Orientation p_368724_, boolean p_54714_) - 覆盖:
neighborChanged
在类中BlockBehaviour
-
shouldSpreadLiquid
@Deprecated private boolean shouldSpreadLiquid(Level p_54697_, BlockPos p_54698_, BlockState p_54699_) 已过时。 -
fizz
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
pickupBlock
public ItemStack pickupBlock(@Nullable Player p_299124_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) - 指定者:
pickupBlock
在接口中BucketPickup
-
getPickupSound
- 指定者:
getPickupSound
在接口中BucketPickup
-
getFluid
-
initFluidStateCache
protected void initFluidStateCache()
-