added invalidate method

This commit is contained in:
dags- 2020-02-27 13:05:43 +00:00
parent 284e75519c
commit a37b0c5cc2

View File

@ -41,4 +41,8 @@ public class States {
public static final StateSupplier SNOW_BLOCK = DefaultState.of("minecraft:snow_block").cache(); public static final StateSupplier SNOW_BLOCK = DefaultState.of("minecraft:snow_block").cache();
public static final StateSupplier STONE = DefaultState.of("minecraft:stone").cache(); public static final StateSupplier STONE = DefaultState.of("minecraft:stone").cache();
public static final StateSupplier WATER = DefaultState.of("minecraft:water").cache(); public static final StateSupplier WATER = DefaultState.of("minecraft:water").cache();
public static void invalidate() {
CachedState.clearAll();
}
} }