static <E extends net.minecraft.entity.Entity,R> R |
GelCapability.getIfPresent(E entity,
java.util.function.Function<IGelEntity,R> action)
Runs the function if the entity has the capability.
|
static <E extends net.minecraft.entity.Entity,R> R |
GelCapability.getIfPresent(E entity,
java.util.function.Function<IGelEntity,R> action,
java.util.function.Function<E,R> elseAction)
Runs the first function if the entity has the capability.
|
static <E extends net.minecraft.entity.Entity> void |
GelCapability.ifPresent(E entity,
java.util.function.Consumer<IGelEntity> action)
Runs the consumer if the entity has the capability
|
static <E extends net.minecraft.entity.Entity> void |
GelCapability.ifPresent(E entity,
java.util.function.Consumer<IGelEntity> action,
java.util.function.Consumer<E> elseAction)
Runs the first consumer if the entity has the capability.
|
void |
GelCapability.Storage.readNBT(net.minecraftforge.common.capabilities.Capability<IGelEntity> capability,
IGelEntity instance,
net.minecraft.util.Direction side,
net.minecraft.nbt.INBT inbt) |
net.minecraft.nbt.INBT |
GelCapability.Storage.writeNBT(net.minecraftforge.common.capabilities.Capability<IGelEntity> capability,
IGelEntity instance,
net.minecraft.util.Direction side) |