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.extension
Package-level
declarations
Functions
Functions
get
Codec
Link copied to clipboard
fun
<
T
>
CompoundTag
.
getCodec
(
codec
:
Codec
<
T
>
)
:
T
?
make
Ticker
Link copied to clipboard
inline
fun
<
ENTITY
:
AEBaseBlockEntity
,
TICKING
:
Any
>
makeTicker
(
clazz
:
KClass
<
ENTITY
>
,
crossinline
tickerFuncRef
:
TICKING
.
(
)
->
Unit
)
:
BlockEntityTicker
<
ENTITY
>
?
put
Codec
Link copied to clipboard
fun
<
T
>
CompoundTag
.
putCodec
(
codec
:
Codec
<
T
>
,
value
:
T
)
register
Link copied to clipboard
fun
<
ITEM
:
Item
>
DeferredRegister.Items
.
register
(
englishName
:
String
,
name
:
String
,
supplier
:
(
Item.Properties
)
->
ITEM
)
:
ItemDefinition
<
ITEM
>
fun
<
BLOCK
:
Block
>
DeferredRegister.Blocks
.
register
(
englishName
:
String
,
name
:
String
,
supplier
:
(
)
->
BLOCK
,
itemRegistry
:
DeferredRegister.Items
,
itemSupplier
:
(
Block
,
Item.Properties
)
->
BlockItem
?
=
null
)
:
BlockDefinition
<
BLOCK
>
register
Type
Link copied to clipboard
inline
fun
<
ENTITY
:
AEBaseBlockEntity
,
BLOCK
:
AEBaseEntityBlock
<
ENTITY
>
>
DeferredRegister
<
BlockEntityType
<
*
>
>
.
registerType
(
name
:
String
,
crossinline
factory
:
(
BlockEntityType
<
ENTITY
>
,
BlockPos
,
BlockState
)
->
ENTITY
,
vararg
deferredBlocks
:
BlockDefinition
<
BLOCK
>
)
:
DeferredBlockEntityType
<
ENTITY
>
take
If
Client
Link copied to clipboard
fun
Level
?
.
takeIfClient
(
)
:
Level
?
take
If
Server
Link copied to clipboard
fun
Level
?
.
takeIfServer
(
)
:
Level
?