Package com.jozufozu.flywheel.util
Class WorldAttached<T>
java.lang.Object
com.jozufozu.flywheel.util.WorldAttached<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidempty(BiConsumer<net.minecraft.world.level.LevelAccessor, T> finalizer) Deletes all entries after calling a function on them.voidDeletes all entries after calling a function on them.get(net.minecraft.world.level.LevelAccessor world) static voidinvalidateWorld(net.minecraft.world.level.LevelAccessor world) voidreplace(net.minecraft.world.level.LevelAccessor world) Replaces the entry with a new one from the factory and returns the new entry.Replaces the entry with a new one from the factory and returns the new entry.
-
Constructor Details
-
WorldAttached
-
-
Method Details
-
invalidateWorld
public static void invalidateWorld(net.minecraft.world.level.LevelAccessor world) -
get
-
put
-
replace
Replaces the entry with a new one from the factory and returns the new entry. -
replace
Replaces the entry with a new one from the factory and returns the new entry. -
empty
Deletes all entries after calling a function on them.- Parameters:
finalizer- Do something with all of the world-value pairs
-
empty
Deletes all entries after calling a function on them.- Parameters:
finalizer- Do something with all of the values
-