Package net.mcreator.workspace.misc
Record Class WorkspaceInfo
java.lang.Object
java.lang.Record
net.mcreator.workspace.misc.WorkspaceInfo
-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceInfo(Workspace workspace) Creates an instance of aWorkspaceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.<T extends MappableElement>
Set<MappableElement> filterBrokenReferences(Collection<T> input) getElementsOfType(String typeString) getGElementsOfType(String typeString) getUUID()booleanhasElementsOfBaseType(String baseTypeString) booleanhasElementsOfType(String typeString) final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanhasModElement(String elementName) booleanbooleanbooleanhasVariablesOfScope(String type) <T extends MappableElement>
Set<MappableElement> normalizeTagElements(String tag, int mappingTable, Collection<T> elements) Returns a set of mappable elements that do not trigger circular dependency to tagfinal StringtoString()Returns a string representation of this record class.Returns the value of theworkspacerecord component.
-
Constructor Details
-
WorkspaceInfo
Creates an instance of aWorkspaceInforecord class.- Parameters:
workspace- the value for theworkspacerecord component
-
-
Method Details
-
getElementsOfType
-
getGElementsOfType
-
hasElementsOfBaseType
-
hasElementsOfType
-
hasVariablesOfScope
-
hasVariables
public boolean hasVariables() -
hasSounds
public boolean hasSounds() -
hasJavaModels
public boolean hasJavaModels() -
getItemTextureMap
-
hasItemsInTabs
public boolean hasItemsInTabs() -
getCreativeTabMap
-
hasModElement
-
filterBrokenReferences
-
normalizeTagElements
public <T extends MappableElement> Set<MappableElement> normalizeTagElements(String tag, int mappingTable, Collection<T> elements) Returns a set of mappable elements that do not trigger circular dependency to tag- Type Parameters:
T- Type of elements- Parameters:
tag- Tag name with namespace to check. A plain name without # or TAG: prefix is required.mappingTable- Mapping table to use for getting mapped values of the elementselements- Collection of elements to normalize/filter- Returns:
- Set of elements that do not trigger circular dependency to tag
-
getUUID
-
getUUID
-
itemBlock
-
getWorkspace
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
workspace
Returns the value of theworkspacerecord component.- Returns:
- the value of the
workspacerecord component
-