Interface WindManagerExtension


public interface WindManagerExtension
Used to add custom logic to the WindManager.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    baseTick(net.minecraft.server.level.ServerLevel level)
    Runs before the regular tick method.
    net.minecraft.resources.ResourceLocation
     
    void
    load(net.minecraft.nbt.CompoundTag compoundTag)
    Loads custom data.
    boolean
    Used to reset defined values in the rare case of an overflow.
    void
    save(net.minecraft.nbt.CompoundTag compoundTag)
    Saves custom data.
    net.minecraft.network.protocol.common.custom.CustomPacketPayload
    Appends custom data to the WindSyncPacket.
    void
    tick(net.minecraft.server.level.ServerLevel level)
    Runs after the baseTick method.
  • Method Details

    • extensionID

      net.minecraft.resources.ResourceLocation extensionID()
    • tick

      void tick(net.minecraft.server.level.ServerLevel level)
      Runs after the baseTick method.
    • baseTick

      void baseTick(net.minecraft.server.level.ServerLevel level)
      Runs before the regular tick method.
    • runResetsIfNeeded

      boolean runResetsIfNeeded()
      Used to reset defined values in the rare case of an overflow.

      Please both check and trigger the resets in this method.

      Returns:
      whether a reset was needed and run.
    • syncPacket

      net.minecraft.network.protocol.common.custom.CustomPacketPayload syncPacket(WindSyncPacket packet)
      Appends custom data to the WindSyncPacket.
      Parameters:
      packet - The provided WindSyncPacket to be sent to the client.
      Returns:
      the updated CustomPacketPayload with this extension's data.
    • load

      void load(net.minecraft.nbt.CompoundTag compoundTag)
      Loads custom data.
      Parameters:
      compoundTag - The CompoundTag to read from.
    • save

      void save(net.minecraft.nbt.CompoundTag compoundTag)
      Saves custom data.
      Parameters:
      compoundTag - The CompoundTag to write to.