Enum Class PartRole

java.lang.Object
java.lang.Enum<PartRole>
com.hbm_m.multiblock.PartRole
All Implemented Interfaces:
Serializable, Comparable<PartRole>, Constable, net.minecraft.util.StringRepresentable

public enum PartRole extends Enum<PartRole> implements net.minecraft.util.StringRepresentable
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>

    Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable

    net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Блок контроллера мультиблочной структуры.
     
     
     
     
     
    Блок-часть, по которому можно взобраться как по лестнице.
    Универсальный коннектор
  • Field Summary

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Проверяет, может ли эта роль принимать энергию.
    boolean
    Проверяет, может ли эта роль отдавать энергию.
     
    boolean
    Проверяет, является ли эта роль контроллером структуры.
    boolean
    Проверяет, является ли эта роль точкой подключения conveyor системы.
    boolean
    Проверяет, может ли эта роль использоваться как лестница (climbable).
    static PartRole
    Returns the enum constant of this class with the specified name.
    static PartRole[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DEFAULT

      public static final PartRole DEFAULT
    • ENERGY_CONNECTOR

      public static final PartRole ENERGY_CONNECTOR
    • FLUID_CONNECTOR

      public static final PartRole FLUID_CONNECTOR
    • ITEM_INPUT

      public static final PartRole ITEM_INPUT
    • ITEM_OUTPUT

      public static final PartRole ITEM_OUTPUT
    • UNIVERSAL_CONNECTOR

      public static final PartRole UNIVERSAL_CONNECTOR
      Универсальный коннектор. - Принимает энергию (как ENERGY_CONNECTOR) - Является точкой подключения fluid/item conveyor систем - САМ по себе НЕ передаёт и не принимает fluid/items - Передача предметов/жидкостей происходит через связанные conveyor блоки
    • LADDER

      public static final PartRole LADDER
      Блок-часть, по которому можно взобраться как по лестнице. Работает с любых боковых сторонsd.
    • CONTROLLER

      public static final PartRole CONTROLLER
      Блок контроллера мультиблочной структуры. Может быть размещён в любой позиции структуры (не только в центре). ОБЯЗАТЕЛЬНО должен быть ровно ОДИН контроллер в структуре.
  • Method Details

    • values

      public static PartRole[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PartRole valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
    • canReceiveEnergy

      public boolean canReceiveEnergy()
      Проверяет, может ли эта роль принимать энергию.
    • canSendEnergy

      public boolean canSendEnergy()
      Проверяет, может ли эта роль отдавать энергию.
    • isConveyorConnectionPoint

      public boolean isConveyorConnectionPoint()
      Проверяет, является ли эта роль точкой подключения conveyor системы. САМ по себе НЕ передаёт предметы/жидкости - только через связанные блоки.
    • isLadder

      public boolean isLadder()
      Проверяет, может ли эта роль использоваться как лестница (climbable).
    • isController

      public boolean isController()
      Проверяет, является ли эта роль контроллером структуры.