Class SlotMixin

java.lang.Object
com.hbm_m.mixin.SlotMixin
All Implemented Interfaces:
IMixinSlot

public abstract class SlotMixin extends Object implements IMixinSlot
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setPos(int newX, int newY)
    Реализуем метод из нашего интерфейса.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      public int x
    • y

      public int y
  • Constructor Details

    • SlotMixin

      public SlotMixin()
  • Method Details

    • setPos

      public void setPos(int newX, int newY)
      Реализуем метод из нашего интерфейса. Теперь мы можем изменять поля x и y, так как они помечены как @Mutable.
      Specified by:
      setPos in interface IMixinSlot