Class RedstoneController.RedstoneMode<T extends net.minecraft.world.level.block.entity.BlockEntity & IRedstoneControl<T>>

java.lang.Object
me.desht.pneumaticcraft.common.block.entity.RedstoneController.RedstoneMode<T>
Direct Known Subclasses:
RedstoneController.EmittingRedstoneMode, RedstoneController.ReceivingRedstoneMode
Enclosing class:
RedstoneController<T extends net.minecraft.world.level.block.entity.BlockEntity & IRedstoneControl<T>>

public abstract static class RedstoneController.RedstoneMode<T extends net.minecraft.world.level.block.entity.BlockEntity & IRedstoneControl<T>> extends Object
  • Constructor Details

    • RedstoneMode

      public RedstoneMode(String id, net.minecraft.world.item.ItemStack stackIcon, Predicate<T> runPredicate, Predicate<T> emissionPredicate)
    • RedstoneMode

      public RedstoneMode(String id, net.minecraft.resources.ResourceLocation texture, Predicate<T> runPredicate, Predicate<T> emissionPredicate)
  • Method Details

    • getId

      public String getId()
    • getTexture

      public com.mojang.datafixers.util.Either<net.minecraft.world.item.ItemStack,net.minecraft.resources.ResourceLocation> getTexture()
    • getTranslationKey

      public String getTranslationKey()