Package net.minecraft.block
Interface Waterloggable
- All Superinterfaces:
FluidDrainable,FluidFillable
- All Known Implementing Classes:
AbstractCoralBlock,AbstractRailBlock,AbstractSignBlock,AmethystClusterBlock,BarrierBlock,BigDripleafBlock,BigDripleafStemBlock,CalibratedSculkSensorBlock,CampfireBlock,CandleBlock,ChainBlock,ChestBlock,ConduitBlock,CopperChestBlock,CopperGolemStatueBlock,CoralBlock,CoralFanBlock,CoralWallFanBlock,DeadCoralBlock,DeadCoralFanBlock,DeadCoralWallFanBlock,DecoratedPotBlock,DetectorRailBlock,DriedGhastBlock,EnderChestBlock,FenceBlock,GlowLichenBlock,GrateBlock,HangingRootsBlock,HangingSignBlock,HeavyCoreBlock,HorizontalConnectingBlock,LadderBlock,LanternBlock,LeavesBlock,LightBlock,LightningRodBlock,MangroveLeavesBlock,MangroveRootsBlock,MultifaceBlock,MultifaceGrowthBlock,OxidizableChainBlock,OxidizableCopperChestBlock,OxidizableCopperGolemStatueBlock,OxidizableGrateBlock,OxidizableLanternBlock,OxidizableLightningRodBlock,OxidizablePaneBlock,OxidizableSlabBlock,OxidizableStairsBlock,OxidizableTrapdoorBlock,PaneBlock,PointedDripstoneBlock,PoweredRailBlock,PropaguleBlock,RailBlock,ScaffoldingBlock,SculkSensorBlock,SculkShriekerBlock,SculkVeinBlock,SeaPickleBlock,ShelfBlock,SignBlock,SlabBlock,SmallDripleafBlock,StainedGlassPaneBlock,StairsBlock,TintedParticleLeavesBlock,TrapdoorBlock,TrappedChestBlock,UntintedParticleLeavesBlock,WallBlock,WallHangingSignBlock,WallSignBlock
- Mappings:
Namespace Name named net/minecraft/block/Waterloggableintermediary net/minecraft/class_3737official ecl
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) default Optional<SoundEvent> Returns the sound played when filling a bucket with the fluid contained in this block.default ItemStacktryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) default booleantryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)
-
Method Details
-
canFillWithFluid
default boolean canFillWithFluid(@Nullable @Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) - Specified by:
canFillWithFluidin interfaceFluidFillable- Mappings:
Namespace Name Mixin selector named canFillWithFluidLnet/minecraft/block/FluidFillable;canFillWithFluid(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/Fluid;)Zintermediary method_10310Lnet/minecraft/class_2402;method_10310(Lnet/minecraft/class_1309;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3611;)Zofficial aLdzu;a(Lcew;Ldqu;Lja;Lejm;Lffz;)Z
-
tryFillWithFluid
default boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) - Specified by:
tryFillWithFluidin interfaceFluidFillable- Mappings:
Namespace Name Mixin selector named tryFillWithFluidLnet/minecraft/block/FluidFillable;tryFillWithFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Zintermediary method_10311Lnet/minecraft/class_2402;method_10311(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Zofficial aLdzu;a(Ldrr;Lja;Lejm;Lfga;)Z
-
tryDrainFluid
default ItemStack tryDrainFluid(@Nullable @Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) - Specified by:
tryDrainFluidin interfaceFluidDrainable- Mappings:
Namespace Name Mixin selector named tryDrainFluidLnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;intermediary method_9700Lnet/minecraft/class_2263;method_9700(Lnet/minecraft/class_1309;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;official aLdvd;a(Lcew;Ldrr;Lja;Lejm;)Ldhp;
-
getBucketFillSound
Returns the sound played when filling a bucket with the fluid contained in this block.- Specified by:
getBucketFillSoundin interfaceFluidDrainable- Returns:
- the sound played when filling a bucket with the fluid contained in this block
- See Also:
- Mappings:
Namespace Name Mixin selector named getBucketFillSoundLnet/minecraft/block/FluidDrainable;getBucketFillSound()Ljava/util/Optional;intermediary method_32351Lnet/minecraft/class_2263;method_32351()Ljava/util/Optional;official au_Ldvd;au_()Ljava/util/Optional;
-