Package net.frozenblock.lib.wind.api
Class WindManager
java.lang.Object
net.frozenblock.lib.wind.api.WindManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<WindManagerExtension>net.minecraft.world.phys.Vec3static final Map<Function<WindManager,WindManagerExtension>, Integer> doubledoubledoublebooleannet.minecraft.world.level.levelgen.synth.ImprovedNoisenet.minecraft.world.level.levelgen.synth.ImprovedNoisenet.minecraft.world.level.levelgen.synth.ImprovedNoiselonglongdoubledoubledouble -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExtension(Function<WindManager, WindManagerExtension> extension) static voidaddExtension(Function<WindManager, WindManagerExtension> extension, int priority) @NotNull WindStorage@NotNull WindStoragecreateData(@NotNull net.minecraft.nbt.CompoundTag nbt) @NotNull net.minecraft.network.FriendlyByteBufstatic @NotNull WindManagergetWindManager(@NotNull net.minecraft.server.level.ServerLevel level) @NotNull net.minecraft.world.phys.Vec3getWindMovement(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos) @NotNull net.minecraft.world.phys.Vec3getWindMovement(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier) @NotNull net.minecraft.world.phys.Vec3getWindMovement(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier, double clamp) @NotNull net.minecraft.world.phys.Vec3getWindMovement3D(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double stretch) @NotNull net.minecraft.world.phys.Vec3getWindMovement3D(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier, double stretch) @NotNull net.minecraft.world.phys.Vec3getWindMovement3D(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier, double clamp, double stretch) @NotNull net.minecraft.world.phys.Vec3getWindMovement3D(@NotNull net.minecraft.world.phys.Vec3 pos, double stretch) @NotNull net.minecraft.world.phys.Vec3getWindMovement3D(@NotNull net.minecraft.world.phys.Vec3 pos, double multiplier, double stretch) @NotNull net.minecraft.world.phys.Vec3getWindMovement3D(@NotNull net.minecraft.world.phys.Vec3 pos, double multiplier, double clamp, double stretch) @NotNull net.minecraft.world.phys.Vec3sample3D(@NotNull net.minecraft.world.phys.Vec3 pos, double stretch) @NotNull net.minecraft.world.phys.Vec3sampleVec3(@NotNull net.minecraft.world.level.levelgen.synth.ImprovedNoise sampler, double x, double y, double z) voidsendSync(@NotNull net.minecraft.server.level.ServerLevel level) voidsendSyncToPlayer(@NotNull net.minecraft.network.FriendlyByteBuf byteBuf, @NotNull net.minecraft.server.level.ServerPlayer player) voidsetSeed(long newSeed) voidtick()
-
Field Details
-
EXTENSION_PROVIDERS
-
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
-
addExtension
-
setSeed
public void setSeed(long newSeed) -
getWindManager
@NotNull public static @NotNull WindManager getWindManager(@NotNull @NotNull net.minecraft.server.level.ServerLevel level) -
createData
-
createData
@NotNull public @NotNull WindStorage createData(@NotNull @NotNull net.minecraft.nbt.CompoundTag nbt) -
tick
public void tick() -
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) -
sampleVec3
@NotNull public @NotNull net.minecraft.world.phys.Vec3 sampleVec3(@NotNull @NotNull net.minecraft.world.level.levelgen.synth.ImprovedNoise sampler, double x, double y, double z) -
getWindMovement
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
getWindMovement
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier) -
getWindMovement
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier, double clamp) -
getWindMovement3D
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double stretch) -
getWindMovement3D
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier, double stretch) -
getWindMovement3D
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier, 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 multiplier, double stretch) -
getWindMovement3D
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double multiplier, double clamp, double stretch) -
sample3D
@NotNull public @NotNull net.minecraft.world.phys.Vec3 sample3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double stretch)
-