public class PluggablePowerAdaptor extends PipePluggable
definition, holder, side
Constructor and Description |
---|
PluggablePowerAdaptor(PluggableDefinition definition,
IPipeHolder holder,
net.minecraft.util.EnumFacing side) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox() |
<T> T |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap)
Gets the value of a specified capability key, or null if the given capability is not supported at the call time.
|
PluggableModelKey |
getModelRenderKey(net.minecraft.util.BlockRenderLayer layer) |
net.minecraft.item.ItemStack |
getPickStack()
Called whenever this pluggable is picked by the player (similar to Block.getPickBlock)
|
boolean |
isBlocking() |
addDrops, canBeConnected, canConnectToRedstone, getBlockColor, getBlockFaceShape, getExplosionResistance, getInternalCapability, isSideSolid, onPluggableActivate, onRemove, onTick, readPayload, scheduleNetworkUpdate, writeCreationPayload, writePayload, writeToNbt
public PluggablePowerAdaptor(PluggableDefinition definition, IPipeHolder holder, net.minecraft.util.EnumFacing side)
public net.minecraft.util.math.AxisAlignedBB getBoundingBox()
getBoundingBox
in class PipePluggable
public boolean isBlocking()
isBlocking
in class PipePluggable
public net.minecraft.item.ItemStack getPickStack()
PipePluggable
getPickStack
in class PipePluggable
@Nullable public PluggableModelKey getModelRenderKey(net.minecraft.util.BlockRenderLayer layer)
getModelRenderKey
in class PipePluggable
public <T> T getCapability(@Nonnull net.minecraftforge.common.capabilities.Capability<T> cap)
PipePluggable
ICapabilityProvider
, but where
ICapabilityProvider.hasCapability(Capability, EnumFacing)
will return true when this returns a non-null
value.getCapability
in class PipePluggable