public class ModuleInstance<MOD extends Module<MOD>>
extends java.lang.Object
implements net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>, net.minecraftforge.common.capabilities.ICapabilityProvider
| Modifier | Constructor and Description |
|---|---|
protected |
ModuleInstance(MOD module,
IModularEntity modularEntity) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ActionResultType |
applyInteraction(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.vector.Vector3d vec,
net.minecraft.util.Hand hand) |
net.minecraft.item.ItemStack |
asItemStack() |
void |
deserializeNBT(net.minecraft.nbt.CompoundNBT nbt) |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side) |
int |
getComparatorLevel() |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
IModularEntity |
getModularEntity() |
MOD |
getModule() |
ModuleType |
getModuleType() |
void |
invalidateCapabilities() |
void |
onActivatorPass(boolean receivingPower) |
void |
read(net.minecraft.network.PacketBuffer packetBuffer) |
void |
receiveClientUpdate(int type,
net.minecraft.nbt.CompoundNBT compoundNBT) |
void |
sendClientUpdate(int type,
net.minecraft.nbt.CompoundNBT compoundNBT) |
net.minecraft.nbt.CompoundNBT |
serializeNBT() |
void |
tick() |
void |
write(net.minecraft.network.PacketBuffer packetBuffer) |
protected ModuleInstance(MOD module, IModularEntity modularEntity)
public void tick()
public net.minecraft.util.ActionResultType applyInteraction(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.vector.Vector3d vec,
net.minecraft.util.Hand hand)
public int getComparatorLevel()
@Nonnull
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(@Nonnull
net.minecraftforge.common.capabilities.Capability<T> cap,
@Nullable
net.minecraft.util.Direction side)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProviderpublic void onActivatorPass(boolean receivingPower)
public net.minecraft.nbt.CompoundNBT serializeNBT()
serializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>public void deserializeNBT(net.minecraft.nbt.CompoundNBT nbt)
deserializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>public MOD getModule()
public ModuleType getModuleType()
public IModularEntity getModularEntity()
public net.minecraft.util.text.ITextComponent getDisplayName()
public net.minecraft.item.ItemStack asItemStack()
public void receiveClientUpdate(int type,
@Nullable
net.minecraft.nbt.CompoundNBT compoundNBT)
public void sendClientUpdate(int type,
@Nullable
net.minecraft.nbt.CompoundNBT compoundNBT)
public void invalidateCapabilities()
public void read(net.minecraft.network.PacketBuffer packetBuffer)
public void write(net.minecraft.network.PacketBuffer packetBuffer)