public class FlowingFluidBlock extends Block implements IBucketPickupHandler
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| 修飾子とタイプ | フィールドと説明 |
|---|---|
static IntegerProperty |
LEVEL |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
FlowingFluidBlock(FlowingFluid fluidIn,
Block.Properties builder)
非推奨です。
|
|
FlowingFluidBlock(java.util.function.Supplier<? extends FlowingFluid> supplier,
Block.Properties p_i48368_1_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
allowsMovement(BlockState state,
IBlockReader worldIn,
BlockPos pos,
PathType type) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
java.util.List<ItemStack> |
getDrops(BlockState state,
LootContext.Builder builder) |
FlowingFluid |
getFluid() |
IFluidState |
getFluidState(BlockState state) |
BlockRenderType |
getRenderType(BlockState state)
非推奨です。
call via
IBlockState#getRenderType() whenever possible. Implementing/overriding is fine. |
VoxelShape |
getShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
protected void |
initFluidStateCache() |
boolean |
isSideInvisible(BlockState state,
BlockState adjacentBlockState,
Direction side) |
void |
neighborChanged(BlockState state,
World worldIn,
BlockPos pos,
Block blockIn,
BlockPos fromPos,
boolean isMoving) |
void |
onBlockAdded(BlockState state,
World worldIn,
BlockPos pos,
BlockState oldState,
boolean isMoving) |
void |
onEntityCollision(BlockState state,
World worldIn,
BlockPos pos,
Entity entityIn) |
Fluid |
pickupFluid(IWorld worldIn,
BlockPos pos,
BlockState state) |
boolean |
propagatesSkylightDown(BlockState state,
IBlockReader reader,
BlockPos pos) |
void |
randomTick(BlockState state,
ServerWorld worldIn,
BlockPos pos,
java.util.Random random)
Performs a random tick on a block.
|
boolean |
reactWithNeighbors(World worldIn,
BlockPos pos,
BlockState state) |
int |
tickRate(IWorldReader worldIn)
How many world ticks before ticking
|
BlockState |
updatePostPlacement(BlockState stateIn,
Direction facing,
BlockState facingState,
IWorld worldIn,
BlockPos currentPos,
BlockPos facingPos)
Update the provided state given the provided neighbor facing and neighbor state, returning a new state.
|
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getExplosionResistance, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, mirror, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final IntegerProperty LEVEL
@Deprecated protected FlowingFluidBlock(FlowingFluid fluidIn, Block.Properties builder)
public FlowingFluidBlock(java.util.function.Supplier<? extends FlowingFluid> supplier, Block.Properties p_i48368_1_)
supplier - A fluid supplier such as net.minecraftforge.fml.RegistryObjectpublic void randomTick(BlockState state, ServerWorld worldIn, BlockPos pos, java.util.Random random)
randomTick クラス内 Blockpublic boolean propagatesSkylightDown(BlockState state, IBlockReader reader, BlockPos pos)
propagatesSkylightDown クラス内 Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement クラス内 Blockpublic IFluidState getFluidState(BlockState state)
getFluidState クラス内 Blockpublic boolean isSideInvisible(BlockState state, BlockState adjacentBlockState, Direction side)
isSideInvisible クラス内 Blockpublic BlockRenderType getRenderType(BlockState state)
IBlockState#getRenderType() whenever possible. Implementing/overriding is fine.getRenderType クラス内 Blockpublic java.util.List<ItemStack> getDrops(BlockState state, LootContext.Builder builder)
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public int tickRate(IWorldReader worldIn)
public void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
onBlockAdded クラス内 Blockpublic BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement クラス内 Blockpublic void neighborChanged(BlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos, boolean isMoving)
neighborChanged クラス内 Blockpublic boolean reactWithNeighbors(World worldIn, BlockPos pos, BlockState state)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer クラス内 Blockpublic Fluid pickupFluid(IWorld worldIn, BlockPos pos, BlockState state)
pickupFluid インタフェース内 IBucketPickupHandlerpublic void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision クラス内 Blockpublic FlowingFluid getFluid()
protected void initFluidStateCache()