Applied-Replicatics
Toggle table of contents
21.1-1.0.1
Select version
21.1-1.0.1
21.1-1.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Applied-Replicatics
Applied-Replicatics
/
dev.lapis256.apprep.api.ae2.stack
/
MatterKey
Matter
Key
class
MatterKey
:
AEKey
Members
Types
Companion
Link copied to clipboard
object
Companion
Properties
amount
Per
Byte
Link copied to clipboard
val
amountPerByte
:
Int
amount
Per
Operation
Link copied to clipboard
val
amountPerOperation
:
Int
amount
Per
Unit
Link copied to clipboard
val
amountPerUnit
:
Int
display
Name
Link copied to clipboard
val
displayName
:
Component
?
fuzzy
Search
Max
Value
Link copied to clipboard
open
val
fuzzySearchMaxValue
:
Int
fuzzy
Search
Value
Link copied to clipboard
open
val
fuzzySearchValue
:
Int
id
Link copied to clipboard
open
override
val
id
:
ResourceLocation
location
Link copied to clipboard
val
location
:
ResourceLocation
mod
Id
Link copied to clipboard
open
val
modId
:
String
?
primary
Key
Link copied to clipboard
open
override
val
primaryKey
:
Any
stack
Link copied to clipboard
val
stack
:
MatterStack
type
Link copied to clipboard
val
type
:
IMatterType
open
override
val
type
:
MatterKeyType
unit
Symbol
Link copied to clipboard
@get:
Nullable
val
unitSymbol
:
@
Nullable
String
?
Functions
add
Drops
Link copied to clipboard
open
override
fun
addDrops
(
amount
:
Long
,
drops
:
List
<
ItemStack
>
?
,
level
:
Level
?
,
pos
:
BlockPos
?
)
drop
Secondary
Link copied to clipboard
open
override
fun
dropSecondary
(
)
:
AEKey
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
format
Amount
Link copied to clipboard
open
fun
formatAmount
(
amount
:
Long
,
format
:
AmountFormat
?
)
:
String
?
fuzzy
Equals
Link copied to clipboard
fun
fuzzyEquals
(
other
:
AEKey
?
,
fuzzyMode
:
FuzzyMode
?
)
:
Boolean
get
Link copied to clipboard
@
Nullable
open
operator
fun
<
T
:
Any
?
>
get
(
type
:
DataComponentType
<
T
?
>
?
)
:
@
Nullable
T
?
get
Id
Link copied to clipboard
open
override
fun
getId
(
)
:
ResourceLocation
get
Primary
Key
Link copied to clipboard
open
override
fun
getPrimaryKey
(
)
:
Any
get
Type
Link copied to clipboard
open
override
fun
getType
(
)
:
MatterKeyType
has
Components
Link copied to clipboard
open
override
fun
hasComponents
(
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
is
Tagged
Link copied to clipboard
open
fun
isTagged
(
tag
:
TagKey
<
*
>
?
)
:
Boolean
matches
Link copied to clipboard
@
Contract
(
value
=
"null -> false"
)
fun
matches
(
@
Nullable
stack
:
@
Nullable
GenericStack
?
)
:
Boolean
supports
Fuzzy
Range
Search
Link copied to clipboard
fun
supportsFuzzyRangeSearch
(
)
:
Boolean
to
Stack
Link copied to clipboard
fun
toStack
(
amount
:
Long
)
:
MatterStack
to
Tag
Link copied to clipboard
open
override
fun
toTag
(
registries
:
HolderLookup.Provider
)
:
CompoundTag
to
Tag
Generic
Link copied to clipboard
fun
toTagGeneric
(
registries
:
HolderLookup.Provider
?
)
:
CompoundTag
?
wrap
For
Display
Or
Filter
Link copied to clipboard
open
fun
wrapForDisplayOrFilter
(
)
:
ItemStack
?
write
To
Packet
Link copied to clipboard
open
override
fun
writeToPacket
(
data
:
RegistryFriendlyByteBuf
)