BlockSetModule

public class BlockSetModule extends JavaPlugin

Class BlockSetModule. Provides blocksetmodule functionality for the Hytale server.

java.lang.Object > JavaPlugin > BlockSetModule

Field Summary

flattenedBlockSets

private Int2ObjectMap flattenedBlockSets

Field flattenedBlockSets.

unmodifiableFlattenedBlockSets

private Int2ObjectMap unmodifiableFlattenedBlockSets

Field unmodifiableFlattenedBlockSets.

blockSetLookupTable

private BlockSetLookupTable blockSetLookupTable

Field blockSetLookupTable.

flattenedSets

final Int2ObjectOpenHashMap flattenedSets

Field flattenedSets.

index

final int index

Field index.

tIntSet

final IntSet tIntSet

Field tIntSet.

set

final IntOpenHashSet set

Field set.

result

final IntOpenHashSet result

Field result.

parent

final String parent

Field parent.

parentIndex

final int parentIndex

Field parentIndex.

includeBlockTypes

final String[] includeBlockTypes

Field includeBlockTypes.

typeString

final String typeString

Field typeString.

obj

final IntOpenHashSet obj

Field obj.

includeBlockGroups

final String[] includeBlockGroups

Field includeBlockGroups.

typeString2

final String typeString2

Field typeString2.

obj2

final IntOpenHashSet obj2

Field obj2.

includeHitboxTypes

final String[] includeHitboxTypes

Field includeHitboxTypes.

typeString3

final String typeString3

Field typeString3.

obj3

final IntOpenHashSet obj3

Field obj3.

excludeBlockTypes

final String[] excludeBlockTypes

Field excludeBlockTypes.

typeString4

final String typeString4

Field typeString4.

obj4

final IntOpenHashSet obj4

Field obj4.

excludeBlockGroups

final String[] excludeBlockGroups

Field excludeBlockGroups.

typeString5

final String typeString5

Field typeString5.

obj5

final IntOpenHashSet obj5

Field obj5.

excludeHitboxTypes

final String[] excludeHitboxTypes

Field excludeHitboxTypes.

typeString6

final String typeString6

Field typeString6.

obj6

final IntOpenHashSet obj6

Field obj6.

includeCategories

final String[][] includeCategories

Field includeCategories.

obj7

final IntOpenHashSet obj7

Field obj7.

excludeCategories

final String[][] excludeCategories

Field excludeCategories.

obj8

final IntOpenHashSet obj8

Field obj8.

blockSet

final BlockSet blockSet

Field blockSet.

andSet

final IntSet andSet

Field andSet.

found

final boolean[] found

Field found.

ids

final IntSet ids

Field ids.

s

final IntSet s

Field s.

Method Detail

BlockSetModule

public public BlockSetModule (@Nonnull final JavaPluginInit module)

Method BlockSetModule.

Parameters:
@Nonnull final JavaPluginInit module

setup

protected void setup ()

Method setup.

BlockSetCommand

public new BlockSetCommand (this)

Method BlockSetCommand.

Parameters:
this this

onBlockTypesChanged

private void onBlockTypesChanged (@Nonnull final LoadedAssetsEvent> event)

Method onBlockTypesChanged.

Parameters:
@Nonnull final LoadedAssetsEvent> event

BlockSetLookupTable

public new BlockSetLookupTable (event.getAssetMap()

Method BlockSetLookupTable.

Parameters:
event.getAssetMap( event.getAssetMap(

onBlockSetsChanged

private void onBlockSetsChanged (final LoadedAssetsEvent> event)

Method onBlockSetsChanged.

Parameters:
final LoadedAssetsEvent> event

flattenBlockSets

private Int2ObjectMap flattenBlockSets (@Nonnull final BlockSetLookupTable lookupTable)

Method flattenBlockSets.

Parameters:
@Nonnull final BlockSetLookupTable lookupTable

createSet

private IntOpenHashSet createSet (@Nonnull final BlockSet blockSet, @Nonnull final BlockSetLookupTable lookupTable, @Nonnull final Int2ObjectMap flattenedSets)

Method createSet.

Parameters:
@Nonnull final BlockSet blockSet
@Nonnull final BlockSetLookupTable lookupTable
@Nonnull final Int2ObjectMap flattenedSets

consume

private void consume (@Nullable final String[] values, @Nonnull final Map map, final String typeString, @Nonnull final Consumer addAll)

Method consume.

Parameters:
@Nullable final String[] values
@Nonnull final Map map
final String typeString
@Nonnull final Consumer addAll

consumeCategory

private void consumeCategory (@Nullable final String[] categories, @Nonnull final Consumer predicate, @Nonnull final BlockSetLookupTable lookupTable)

Method consumeCategory.

Parameters:
@Nullable final String[] categories
@Nonnull final Consumer predicate
@Nonnull final BlockSetLookupTable lookupTable

consumeEntry

private void consumeEntry (@Nonnull final String name, @Nonnull final Consumer predicate, @Nonnull final Map nameIdMap, final String typeString)

Method consumeEntry.

Parameters:
@Nonnull final String name
@Nonnull final Consumer predicate
@Nonnull final Map nameIdMap
final String typeString

getBlockSets

public Int2ObjectMap getBlockSets ()

Method getBlockSets.

blockInSet

public boolean blockInSet (final int set, final int blockId)

Method blockInSet.

Parameters:
final int set
final int blockId

getInstance

static BlockSetModule getInstance ()

Method getInstance.