public class ItemSystems
Class ItemSystems. Provides itemsystems functionality for the Hytale server.
java.lang.Object > ItemSystems
Field Summary
itemComponent
final
ItemComponent
itemComponent
Field itemComponent.
itemDynamicLight
final
ColorLight
itemDynamicLight
Field itemDynamicLight.
visibleComponent
final
EntityTrackerSystems.Visible
visibleComponent
Field visibleComponent.
entityScaleComponent
final
EntityScaleComponent
entityScaleComponent
Field entityScaleComponent.
update
final
ComponentUpdate
update
Field update.
itemStack
final
ItemStack
itemStack
Field itemStack.
Method Detail
onEntityAdd
public
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
NetworkId
public
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
BoundingBox
public
new
BoundingBox
(Box.horizontallyCentered(0.5, 0.5, 0.5)
Method BoundingBox.
- Parameters:
Box.horizontallyCentered(0.5Box.horizontallyCentered(0.50.50.5
DynamicLight
public
new
DynamicLight
(itemDynamicLight)
Method DynamicLight.
- Parameters:
itemDynamicLightitemDynamicLight
onEntityRemoved
public
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
public
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
public
else
if
(!visibleComponent.newlyVisibleTo.isEmpty()
Method if.
- Parameters:
!visibleComponent.newlyVisibleTo.isEmpty(!visibleComponent.newlyVisibleTo.isEmpty(
queueUpdatesFor
static
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final ItemComponent item, final float entityScale, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final ItemComponentitemfinal floatentityScale@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTo