Class StaticItemType
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.item.type.StaticItemType
- All Implemented Interfaces:
ItemType
,MappedEntity
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorsConstructorDescriptionStaticItemType
(@Nullable TypesBuilderData data, int maxAmount, int maxDurability, ItemType craftRemainder, @Nullable StateType placedType, Set<ItemTypes.ItemAttribute> attributes) -
Method Summary
Modifier and TypeMethodDescriptiongetComponents
(ClientVersion version) int
int
@Nullable StateType
Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.item.type.ItemType
getComponents, hasAttribute, isMusicDisc
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
-
Constructor Details
-
StaticItemType
@Internal public StaticItemType(@Nullable @Nullable TypesBuilderData data, int maxAmount, int maxDurability, ItemType craftRemainder, @Nullable @Nullable StateType placedType, Set<ItemTypes.ItemAttribute> attributes)
-
-
Method Details
-
getMaxAmount
public int getMaxAmount()- Specified by:
getMaxAmount
in interfaceItemType
-
getMaxDurability
public int getMaxDurability()- Specified by:
getMaxDurability
in interfaceItemType
-
getCraftRemainder
- Specified by:
getCraftRemainder
in interfaceItemType
-
getPlacedType
- Specified by:
getPlacedType
in interfaceItemType
-
getAttributes
- Specified by:
getAttributes
in interfaceItemType
-
getComponents
- Specified by:
getComponents
in interfaceItemType
-