Package net.mcreator.generator.mapping
Class MappableElement
java.lang.Object
net.mcreator.generator.mapping.MappableElement
- All Implemented Interfaces:
IWorkspaceDependent
- Direct Known Subclasses:
AchievementEntry
,BiomeEntry
,DamageTypeEntry
,EffectEntry
,Enchantment
,EntityEntry
,Fluid
,Material
,MItemBlock
,NonMappableElement
,Particle
,ProfessionEntry
,ProjectileEntry
,Sound
,StepSound
,TabEntry
,UniquelyMappedElement
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMappableElement
(NameMapper mapper) MappableElement
(NameMapper mapper, String value) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
getMappedValue
(int mappingTable) int
hashCode()
boolean
isEmpty()
boolean
void
setManaged
(boolean managed) Call this to mark the current mappable element as managed - meaning it was not generated by a direct user input.void
setWorkspace
(Workspace workspace) toString()
-
Field Details
-
mapper
-
-
Constructor Details
-
MappableElement
-
MappableElement
-
-
Method Details
-
toString
-
isEmpty
public boolean isEmpty() -
getMappedValue
-
getMappedValue
-
getUnmappedValue
-
canProperlyMap
public boolean canProperlyMap() -
getDataListEntry
-
setManaged
public void setManaged(boolean managed) Call this to mark the current mappable element as managed - meaning it was not generated by a direct user input. Can be used to filter out elements that were not generated by the user in UI components, for example.- Parameters:
managed
- true if the element is managed
-
isManaged
public boolean isManaged()- Returns:
- true if the element was marked as managed
- See Also:
-
setWorkspace
- Specified by:
setWorkspace
in interfaceIWorkspaceDependent
-
getWorkspace
- Specified by:
getWorkspace
in interfaceIWorkspaceDependent
-
hashCode
public int hashCode() -
equals
-