Package net.minecraft.block
Class AbstractFluidBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractFluidBlock
- Direct Known Subclasses:
FlowingFluidBlock,FluidBlock
- Mappings:
Namespace Name official akhintermediary net/minecraft/class_153named net/minecraft/block/AbstractFluidBlock
-
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
blastResistance, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_469, field_483, field_484, field_486, field_487, field_6259, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, side, slipperiness, soundGroup, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbreakNaturally(World world, int x, int y, int z) intintgetColor()intgetDropCount(Random rand) Returns the amount of items the block should drop on breaking without bonus rolls.static floatgetHeightPercent(int height) getTexture(int side, int blockData) intgetTickRate(World world) Returns the block's tick rate.booleanstatic doublemethod_329(BlockView blockView, int int2, int int3, int int4, Material material) protected intmethod_331(BlockView blockView, int int2, int int3, int int4) protected intmethod_332(World world, int int2, int int3, int int4) private Vec3dmethod_333(BlockView blockView, int int2, int int3, int int4) protected voidmethod_334(World world, int int2, int int3, int int4) private voidmethod_335(World world, int int2, int int3, int int4) method_398(int int2, Random random, int int3) booleanmethod_400(int int2, boolean bool) voidmethod_415(World world, int int2, int int3, int int4, Random random) voidmethod_418(World world, int int2, int int3, int int4, Entity entity, Vec3d vec3d) intmethod_438(BlockView blockView, int int2, int int3, int int4) booleanmethod_446(BlockView blockView, int int2, int int3, int int4) booleanmethod_452(BlockView blockView, int int2, int int3, int int4, int int5) method_454(World world, int int2, int int3, int int4) intmethod_455(BlockView blockView, int int2, int int3, int int4) static Texturemethod_4779(String string) intvoidonNeighborUpdate(World world, int x, int y, int z, Block block) voidregisterTextures(TextureRegistry registry) booleanReturns whether the block can be rendered as a normal blockbooleanshouldRenderSide(BlockView world, int x, int y, int z, int blockData) Methods inherited from class net.minecraft.block.Block
appendItemStacks, areBlocksEqual, canPlaceBlockAt, canStayPlaced, canStayPlaced, disableStats, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlockFromItem, getBonusDrops, getById, getCollisionBox, getHardness, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getOpacity, getPistonInteractionType, getSideTexture, getStrongRedstonePower, getTextureName, getTranslatedName, getTranslationKey, getWeakRedstonePower, hasBlockEntity, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isNormalBlock, isTransluscent, method_405, method_407, method_410, method_411, method_412, method_413, method_414, method_417, method_4185, method_4186, method_420, method_422, method_424, method_425, method_428, method_431, method_435, method_437, method_448, method_457, method_459, method_461, method_463, method_464, method_468, method_4790, method_4793, method_4794, method_4798, method_5546, method_6444, method_6449, onActivated, onBreak, onDestroyed, onEntityCollision, onTick, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
field_5570
- Mappings:
Namespace Name Mixin selector official aLakh;a:[Lpr;intermediary field_5570Lnet/minecraft/class_153;field_5570:[Lnet/minecraft/class_1557;named field_5570Lnet/minecraft/block/AbstractFluidBlock;field_5570:[Lnet/minecraft/client/Texture;
-
-
Constructor Details
-
AbstractFluidBlock
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Laht;<init>(Lave;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
-
-
Method Details
-
method_446
- Overrides:
method_446in classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafw;III)Zintermediary method_446Lnet/minecraft/class_197;method_446(Lnet/minecraft/class_1158;III)Znamed method_446Lnet/minecraft/block/Block;method_446(Lnet/minecraft/world/BlockView;III)Z
-
getColor
-
method_438
- Overrides:
method_438in classBlock- Mappings:
Namespace Name Mixin selector official dLaht;d(Lafw;III)Iintermediary method_438Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;III)Inamed method_438Lnet/minecraft/block/Block;method_438(Lnet/minecraft/world/BlockView;III)I
-
getHeightPercent
public static float getHeightPercent(int height) - Mappings:
Namespace Name Mixin selector official bLakh;b(I)Fintermediary method_330Lnet/minecraft/class_153;method_330(I)Fnamed getHeightPercentLnet/minecraft/block/AbstractFluidBlock;getHeightPercent(I)F
-
getTexture
- Overrides:
getTexturein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(II)Lpr;intermediary method_395Lnet/minecraft/class_197;method_395(II)Lnet/minecraft/class_1557;named getTextureLnet/minecraft/block/Block;getTexture(II)Lnet/minecraft/client/Texture;
-
method_332
- Mappings:
Namespace Name Mixin selector official eLakh;e(Lafm;III)Iintermediary method_332Lnet/minecraft/class_153;method_332(Lnet/minecraft/class_1150;III)Inamed method_332Lnet/minecraft/block/AbstractFluidBlock;method_332(Lnet/minecraft/world/World;III)I
-
method_331
- Mappings:
Namespace Name Mixin selector official eLakh;e(Lafw;III)Iintermediary method_331Lnet/minecraft/class_153;method_331(Lnet/minecraft/class_1158;III)Inamed method_331Lnet/minecraft/block/AbstractFluidBlock;method_331(Lnet/minecraft/world/BlockView;III)I
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLaht;d()Zintermediary method_441Lnet/minecraft/class_197;method_441()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
method_400
public boolean method_400(int int2, boolean bool) - Overrides:
method_400in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(IZ)Zintermediary method_400Lnet/minecraft/class_197;method_400(IZ)Znamed method_400Lnet/minecraft/block/Block;method_400(IZ)Z
-
method_452
- Overrides:
method_452in classBlock- Mappings:
Namespace Name Mixin selector official dLaht;d(Lafw;IIII)Zintermediary method_452Lnet/minecraft/class_197;method_452(Lnet/minecraft/class_1158;IIII)Znamed method_452Lnet/minecraft/block/Block;method_452(Lnet/minecraft/world/BlockView;IIII)Z
-
shouldRenderSide
@Environment(CLIENT) public boolean shouldRenderSide(BlockView world, int x, int y, int z, int blockData) - Overrides:
shouldRenderSidein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafw;IIII)Zintermediary method_447Lnet/minecraft/class_197;method_447(Lnet/minecraft/class_1158;IIII)Znamed shouldRenderSideLnet/minecraft/block/Block;shouldRenderSide(Lnet/minecraft/world/BlockView;IIII)Z
-
method_454
- Overrides:
method_454in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;III)Laye;intermediary method_454Lnet/minecraft/class_197;method_454(Lnet/minecraft/class_1150;III)Lnet/minecraft/class_231;named method_454Lnet/minecraft/block/Block;method_454(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
-
getBlockType
public int getBlockType()- Overrides:
getBlockTypein classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b()Iintermediary method_429Lnet/minecraft/class_197;method_429()Inamed getBlockTypeLnet/minecraft/block/Block;getBlockType()I
-
method_398
- Overrides:
method_398in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(ILjava/util/Random;I)Labm;intermediary method_398Lnet/minecraft/class_197;method_398(ILjava/util/Random;I)Lnet/minecraft/class_1069;named method_398Lnet/minecraft/block/Block;method_398(ILjava/util/Random;I)Lnet/minecraft/item/Item;
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLaht;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
method_333
- Mappings:
Namespace Name Mixin selector official fLakh;f(Lafw;III)Layj;intermediary method_333Lnet/minecraft/class_153;method_333(Lnet/minecraft/class_1158;III)Lnet/minecraft/class_236;named method_333Lnet/minecraft/block/AbstractFluidBlock;method_333(Lnet/minecraft/world/BlockView;III)Lnet/minecraft/util/math/Vec3d;
-
method_418
- Overrides:
method_418in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILqm;Layj;)Vintermediary method_418Lnet/minecraft/class_197;method_418(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;Lnet/minecraft/class_236;)Vnamed method_418Lnet/minecraft/block/Block;method_418(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
-
getTickRate
Returns the block's tick rate. Default is 10.- Overrides:
getTickRatein classBlock- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
method_455
- Overrides:
method_455in classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c(Lafw;III)Iintermediary method_455Lnet/minecraft/class_197;method_455(Lnet/minecraft/class_1158;III)Inamed method_455Lnet/minecraft/block/Block;method_455(Lnet/minecraft/world/BlockView;III)I
-
method_479
- Overrides:
method_479in classBlock- Mappings:
Namespace Name Mixin selector official wLaht;w()Iintermediary method_479Lnet/minecraft/class_197;method_479()Inamed method_479Lnet/minecraft/block/Block;method_479()I
-
method_415
@Environment(CLIENT) public void method_415(World world, int int2, int int3, int int4, Random random) - Overrides:
method_415in classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafm;IIILjava/util/Random;)Vintermediary method_415Lnet/minecraft/class_197;method_415(Lnet/minecraft/class_1150;IIILjava/util/Random;)Vnamed method_415Lnet/minecraft/block/Block;method_415(Lnet/minecraft/world/World;IIILjava/util/Random;)V
-
method_329
@Environment(CLIENT) public static double method_329(BlockView blockView, int int2, int int3, int int4, Material material) - Mappings:
Namespace Name Mixin selector official aLakh;a(Lafw;IIILave;)Dintermediary method_329Lnet/minecraft/class_153;method_329(Lnet/minecraft/class_1158;IIILnet/minecraft/class_63;)Dnamed method_329Lnet/minecraft/block/AbstractFluidBlock;method_329(Lnet/minecraft/world/BlockView;IIILnet/minecraft/block/Material;)D
-
breakNaturally
- Overrides:
breakNaturallyin classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafm;III)Vintermediary method_460Lnet/minecraft/class_197;method_460(Lnet/minecraft/class_1150;III)Vnamed breakNaturallyLnet/minecraft/block/Block;breakNaturally(Lnet/minecraft/world/World;III)V
-
onNeighborUpdate
- Overrides:
onNeighborUpdatein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILaht;)Vintermediary method_408Lnet/minecraft/class_197;method_408(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)Vnamed onNeighborUpdateLnet/minecraft/block/Block;onNeighborUpdate(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
-
method_335
- Mappings:
Namespace Name Mixin selector official nLakh;n(Lafm;III)Vintermediary method_335Lnet/minecraft/class_153;method_335(Lnet/minecraft/class_1150;III)Vnamed method_335Lnet/minecraft/block/AbstractFluidBlock;method_335(Lnet/minecraft/world/World;III)V
-
method_334
- Mappings:
Namespace Name Mixin selector official mLakh;m(Lafm;III)Vintermediary method_334Lnet/minecraft/class_153;method_334(Lnet/minecraft/class_1150;III)Vnamed method_334Lnet/minecraft/block/AbstractFluidBlock;method_334(Lnet/minecraft/world/World;III)V
-
registerTextures
- Overrides:
registerTexturesin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lps;)Vintermediary method_4791Lnet/minecraft/class_197;method_4791(Lnet/minecraft/class_1558;)Vnamed registerTexturesLnet/minecraft/block/Block;registerTextures(Lnet/minecraft/client/TextureRegistry;)V
-
method_4779
- Mappings:
Namespace Name Mixin selector official eLakh;e(Ljava/lang/String;)Lpr;intermediary method_4779Lnet/minecraft/class_153;method_4779(Ljava/lang/String;)Lnet/minecraft/class_1557;named method_4779Lnet/minecraft/block/AbstractFluidBlock;method_4779(Ljava/lang/String;)Lnet/minecraft/client/Texture;
-