Class ElementUtil
java.lang.Object
net.mcreator.minecraft.ElementUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<DataListEntry> getAllEntriesFor(Workspace workspace, String datalist) static Map<String, Function<Workspace, Collection<DataListEntry>>> static String[]getDataListAsStringArray(String dataList) static String[]getProceduresOfType(Workspace workspace, VariableType type) Returns an array with the names of procedures that return the given variable typestatic Map<String, Function<Workspace, Collection<DataListEntry>>> static List<DataListEntry> loadAllAchievements(Workspace workspace) static List<DataListEntry> loadAllAttributes(Workspace workspace) static List<DataListEntry> loadAllBiomes(Workspace workspace) static List<DataListEntry> loadAllConfiguredFeatures(Workspace workspace) static List<DataListEntry> loadAllEnchantments(Workspace workspace) static List<DataListEntry> loadAllEntities(Workspace workspace) static List<DataListEntry> static List<DataListEntry> loadAllEquipmentSlots(boolean addDefault) static List<DataListEntry> loadAllFluids(Workspace workspace) static List<DataListEntry> loadAllParticles(Workspace workspace) static List<MItemBlock> loadAllPOIBlocks(Workspace workspace) Returns list of blocks attached to a POI for this workspacestatic List<DataListEntry> loadAllPotionEffects(Workspace workspace) static List<DataListEntry> loadAllSounds(Workspace workspace) static List<DataListEntry> loadAllSpawnableEntities(Workspace workspace) static List<DataListEntry> loadAllStructures(Workspace workspace) static List<DataListEntry> loadAllTabs(Workspace workspace) static List<DataListEntry> loadAllVillagerProfessions(Workspace workspace) static List<DataListEntry> loadAnimations(Workspace workspace) static List<DataListEntry> loadArrowProjectiles(Workspace workspace) loadBasicGUIs(Workspace workspace) loadBlocks(Workspace workspace) Loads all blocks without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) so only oak wood, cherry wood, ...loadBlocksAndItems(Workspace workspace) Loads all items (also blocks if they have item representation), but without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) so only oak wood, cherry wood, ...loadBlocksAndItemsAndPotions(Workspace workspace) Loads all items (also blocks if they have item representation), without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) so only oak wood, cherry wood, ...loadBlocksAndItemsAndTags(Workspace workspace) Loads all items (also blocks if they have item representation), including elements that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...).loadBlocksAndItemsAndTagsAndPotions(Workspace workspace) Loads all items (also blocks if they have item representation), including those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) This list also provides potions from both Minecraft elements and mod elements.loadBlocksAndTags(Workspace workspace) Loads all mod elements and all Minecraft blocks, including those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...)loadBlocksWithItemForm(Workspace workspace) Loads all blocks with an item form, without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...), so only oak wood, cherry wood, ...static List<DataListEntry> loadCustomEntities(Workspace workspace) loadEntityDataListFromCustomEntity(Workspace workspace, String entityName, Class<? extends PropertyData<?>> type) static List<DataListEntry> loadItemUseAnimations(Workspace workspace) static Predicate<DataListEntry> typeMatches(String... type) Provides a predicate to check the type of data list entries
-
Constructor Details
-
ElementUtil
public ElementUtil()
-
-
Method Details
-
typeMatches
Provides a predicate to check the type of data list entries- Parameters:
type- The type that the entry has to match- Returns:
- A predicate that checks if the type matches the parameter
-
loadBlocksAndItems
Loads all items (also blocks if they have item representation), but without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) so only oak wood, cherry wood, ... are loaded, without wildcard wood element. This will not load blocks without item representation (example fire, water, ...).- Returns:
- All Blocks and Items from both Minecraft and custom elements with or without metadata
-
loadBlocksAndItemsAndTags
Loads all items (also blocks if they have item representation), including elements that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...). This will not load blocks without item representation (example fire, water, ...).- Returns:
- All Blocks and Items from both Minecraft and custom elements with or without metadata
-
loadBlocks
Loads all blocks without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) so only oak wood, cherry wood, ... are loaded, without wildcard wood element- Returns:
- All Blocks from both Minecraft and custom elements with or without metadata
-
loadBlocksWithItemForm
Loads all blocks with an item form, without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...), so only oak wood, cherry wood, ... are loaded, without wildcard wood element- Returns:
- All Blocks from both Minecraft and custom elements with or without metadata
-
loadBlocksAndTags
-
loadBlocksAndItemsAndTagsAndPotions
Loads all items (also blocks if they have item representation), including those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) This list also provides potions from both Minecraft elements and mod elements. This will not load blocks without item representation (example fire, water, ...).- Returns:
- All Blocks and Items and Potions from both Minecraft and custom elements with or without metadata
-
loadBlocksAndItemsAndPotions
Loads all items (also blocks if they have item representation), without those that are wildcard elements to subtypes (wood: oak wood, cherry wood, ...) so only oak wood, cherry wood, ... are loaded, without wildcard wood element This list also provides potions from both Minecraft elements and mod elements. This will not load blocks without item representation (example fire, water, ...).- Returns:
- All Blocks and Items and Potions from both Minecraft and custom elements with or without metadata
-
loadEntityDataListFromCustomEntity
-
loadAllPOIBlocks
Returns list of blocks attached to a POI for this workspace- Parameters:
workspace- Workspace to return for- Returns:
- List of blocks attached to a POI for this workspace
-
loadBasicGUIs
-
loadAllEquipmentSlots
-
loadAllEquipmentSlots
-
getDataListAsStringArray
-
getProceduresOfType
Returns an array with the names of procedures that return the given variable type
- Parameters:
workspace-The current workspace
type-The
VariableTypethat the procedures must return- Returns:
An array of strings containing the names of the procedures
-
getAllEntriesFor
-
loadAllAchievements
-
loadAllTabs
-
loadAllBiomes
-
loadAllEnchantments
-
loadAllStructures
-
loadItemUseAnimations
-
loadAnimations
-
loadAllEntities
-
loadAllSpawnableEntities
-
loadCustomEntities
-
loadAllParticles
-
loadAllPotionEffects
-
loadAllVillagerProfessions
-
loadAllAttributes
-
loadAllFluids
-
loadAllSounds
-
loadAllConfiguredFeatures
-
loadArrowProjectiles
-
getVanillaEntryProviders
public static Map<String, Function<Workspace, Collection<DataListEntry>>> getVanillaEntryProviders() -
getCustomEntryProviders
-