Package net.mcreator.workspace.misc
Record Class WorkspaceInfo
java.lang.Object
java.lang.Record
net.mcreator.workspace.misc.WorkspaceInfo
-
Constructor Summary
ConstructorDescriptionWorkspaceInfo
(Workspace workspace) Creates an instance of aWorkspaceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates 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()
boolean
hasElementsOfBaseType
(String baseTypeString) boolean
hasElementsOfType
(String typeString) final int
hashCode()
Returns a hash code value for this object.boolean
boolean
boolean
boolean
boolean
hasVariablesOfScope
(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 String
toString()
Returns a string representation of this record class.Returns the value of theworkspace
record component.
-
Constructor Details
-
WorkspaceInfo
Creates an instance of aWorkspaceInfo
record class.- Parameters:
workspace
- the value for theworkspace
record 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
-
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 theworkspace
record component.- Returns:
- the value of the
workspace
record component
-