Class EntityMixin

java.lang.Object
net.frozenblock.lib.wind.mixin.EntityMixin
All Implemented Interfaces:
WindDisturbingEntity, WindDisturbingEntityImpl

public abstract class EntityMixin extends Object implements WindDisturbingEntity, WindDisturbingEntityImpl
  • Constructor Details

    • EntityMixin

      public EntityMixin()
  • Method Details

    • frozenLib$addWindDisturbanceServer

      public void frozenLib$addWindDisturbanceServer(org.spongepowered.asm.mixin.injection.callback.CallbackInfo info)
    • frozenLib$getWindDisturbanceLogicID

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation frozenLib$getWindDisturbanceLogicID()
      Specified by:
      frozenLib$getWindDisturbanceLogicID in interface WindDisturbingEntity
      Returns:
      the ResourceLocation of the registered WindDisturbanceLogic to use for this entity.
    • frozenLib$getWindWidth

      public double frozenLib$getWindWidth()
      Specified by:
      frozenLib$getWindWidth in interface WindDisturbingEntity
      Returns:
      the width of the wind disturbance.
    • frozenLib$getWindHeight

      public double frozenLib$getWindHeight()
      Specified by:
      frozenLib$getWindHeight in interface WindDisturbingEntity
      Returns:
      the height of the wind disturbance.
    • frozenLib$getWindAreaYOffset

      public double frozenLib$getWindAreaYOffset()
      Specified by:
      frozenLib$getWindAreaYOffset in interface WindDisturbingEntity
      Returns:
      the vertical offset of the wind disturbance from the entity's center.
    • frozenLib$makeWindDisturbance

      @Nullable public @Nullable WindDisturbance frozenLib$makeWindDisturbance()
      Specified by:
      frozenLib$makeWindDisturbance in interface WindDisturbingEntityImpl
    • frozenLib$useSyncPacket

      public boolean frozenLib$useSyncPacket()
      Specified by:
      frozenLib$useSyncPacket in interface WindDisturbingEntity
      Returns:
      whether this entity will sync its wind disturbance to the client via packets, or will create the disturbance separately on the server and client.
    • level

      public net.minecraft.world.level.Level level()