类 BlockWrapper
java.lang.Object
net.minecraftforge.fluids.capability.templates.VoidFluidHandler
net.minecraftforge.fluids.capability.wrappers.BlockWrapper
- 所有已实现的接口:
IFluidHandler
Wrapper around any block, only accounts for fluid placement, otherwise the block acts a void.
If the block in question inherits from the Forge implementations,
consider using
FluidBlockWrapper
.-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraftforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction
-
字段概要
字段从类继承的字段 net.minecraftforge.fluids.capability.templates.VoidFluidHandler
INSTANCE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
fill
(FluidStack resource, IFluidHandler.FluidAction action) Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.从类继承的方法 net.minecraftforge.fluids.capability.templates.VoidFluidHandler
drain, drain, getFluidInTank, getTankCapacity, getTanks, isFluidValid
-
字段详细资料
-
state
-
world
-
blockPos
-
-
构造器详细资料
-
BlockWrapper
-
-
方法详细资料
-
fill
从接口复制的说明:IFluidHandler
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.- 指定者:
fill
在接口中IFluidHandler
- 覆盖:
fill
在类中VoidFluidHandler
- 参数:
resource
- FluidStack representing the Fluid and maximum amount of fluid to be filled.action
- If SIMULATE, fill will only be simulated.- 返回:
- Amount of resource that was (or would have been, if simulated) filled.
-