Class WindManager

java.lang.Object
net.frozenblock.lib.wind.api.WindManager

public class WindManager extends Object
  • Field Details

    • EXTENSION_PROVIDERS

      public static final Map<Function<WindManager,WindManagerExtension>,Integer> EXTENSION_PROVIDERS
    • attachedExtensions

      public final List<WindManagerExtension> attachedExtensions
    • overrideWind

      public boolean overrideWind
    • time

      public long time
    • commandWind

      public net.minecraft.world.phys.Vec3 commandWind
    • windX

      public double windX
    • windY

      public double windY
    • windZ

      public double windZ
    • laggedWindX

      public double laggedWindX
    • laggedWindY

      public double laggedWindY
    • laggedWindZ

      public double laggedWindZ
    • seed

      public long seed
    • perlinChecked

      public net.minecraft.world.level.levelgen.synth.ImprovedNoise perlinChecked
    • perlinLocal

      public net.minecraft.world.level.levelgen.synth.ImprovedNoise perlinLocal
    • perlinXoro

      public net.minecraft.world.level.levelgen.synth.ImprovedNoise perlinXoro
  • Constructor Details

    • WindManager

      public WindManager(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
  • Method Details

    • addExtension

      public static void addExtension(Function<WindManager,WindManagerExtension> extension, int priority)
    • addExtension

      public static void addExtension(Function<WindManager,WindManagerExtension> extension)
    • addWindDisturbanceAndSync

      public void addWindDisturbanceAndSync(@NotNull @NotNull WindDisturbance windDisturbance)
    • addWindDisturbance

      public void addWindDisturbance(@NotNull @NotNull WindDisturbance windDisturbance)
    • clearWindDisturbances

      public void clearWindDisturbances()
    • clearAllWindDisturbances

      public void clearAllWindDisturbances()
    • clearAndSwitchWindDisturbances

      public void clearAndSwitchWindDisturbances()
    • setSeed

      public void setSeed(long newSeed)
    • getWindManager

      @NotNull public static @NotNull WindManager getWindManager(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
    • createData

      @NotNull public @NotNull WindStorage createData()
    • createData

      @NotNull public @NotNull WindStorage createData(@NotNull @NotNull net.minecraft.nbt.CompoundTag nbt)
    • tick

      public void tick(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
    • createSyncByteBuf

      @NotNull public @NotNull net.minecraft.network.FriendlyByteBuf createSyncByteBuf()
    • sendSync

      public void sendSync(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
    • sendSyncToPlayer

      public void sendSyncToPlayer(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf byteBuf, @NotNull @NotNull net.minecraft.server.level.ServerPlayer player)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.core.BlockPos pos)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.core.BlockPos pos, double scale)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.core.BlockPos pos, double scale, double clamp)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double scale)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double scale, double clamp)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double scale, double clamp, double windDisturbanceScale)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.core.BlockPos pos, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.core.BlockPos pos, double scale, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.core.BlockPos pos, double scale, double clamp, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double scale, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double scale, double clamp, double stretch)
    • calculateWindDisturbance

      @NotNull public static @NotNull com.mojang.datafixers.util.Pair<Double,net.minecraft.world.phys.Vec3> calculateWindDisturbance(@NotNull @NotNull List<WindDisturbance> windDisturbances, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.phys.Vec3 pos)