Package com.minecolonies.api.util
Class BlockStateStorage
java.lang.Object
com.minecolonies.api.util.BlockStateStorage
Stores a blockstate for comparing.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockStateStorage(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull List<net.minecraft.world.level.block.state.properties.Property<?>> compareProperties, boolean exclude) Create an instance of the storage. -
Method Summary
-
Constructor Details
-
BlockStateStorage
public BlockStateStorage(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull List<net.minecraft.world.level.block.state.properties.Property<?>> compareProperties, boolean exclude) Create an instance of the storage.- Parameters:
state- The blockstate to storecompareProperties- the list of properties to compareexclude- True: states are compared ignoring the properties in the given list. False: states are only compared within the properties on the list.
-
-
Method Details
-
getState
public net.minecraft.world.level.block.state.BlockState getState()Returns the stored state- Returns:
- state
-
getCompareProperties
Gets the list of the properties this storage uses to compare storages.- Returns:
- property list
-
hashCode
public int hashCode() -
equals
-