ResourceView

public class ResourceView extends BlockRegionView

Class ResourceView. Provides resourceview functionality for the Hytale server.

java.lang.Object > BlockRegionView > ResourceView

Field Summary

section

final IntSet section

Field section.

sectionIndex

final int sectionIndex

Field sectionIndex.

blockIndex

final int blockIndex

Field blockIndex.

reservation

final BlockReservation reservation

Field reservation.

Method Detail

ResourceView

public public ResourceView (final long index)

Method ResourceView.

Parameters:
final long index

isOutdated

public boolean isOutdated (@Nonnull final Ref ref, @Nonnull final Store store)

Method isOutdated.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store

getUpdatedView

public ResourceView getUpdatedView (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method getUpdatedView.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

initialiseEntity

public void initialiseEntity (@Nonnull final Ref ref, @Nonnull final NPCEntity npcComponent)

Method initialiseEntity.

Parameters:
@Nonnull final Ref ref
@Nonnull final NPCEntity npcComponent

cleanup

public void cleanup ()

Method cleanup.

onWorldRemoved

public void onWorldRemoved ()

Method onWorldRemoved.

isBlockReserved

public boolean isBlockReserved (final int x, final int y, final int z)

Method isBlockReserved.

Parameters:
final int x
final int y
final int z

reserveBlock

public void reserveBlock (@Nonnull final NPCEntity entity, final int x, final int y, final int z)

Method reserveBlock.

Parameters:
@Nonnull final NPCEntity entity
final int x
final int y
final int z

BlockReservation

public new BlockReservation (sectionIndex, blockIndex)

Method BlockReservation.

Parameters:
sectionIndex sectionIndex
blockIndex blockIndex

clearReservation

public void clearReservation (@Nonnull final Ref ref)

Method clearReservation.

Parameters:
@Nonnull final Ref ref

getIndex

public long getIndex ()

Method getIndex.

getReservationsByEntity

public BlockReservation> getReservationsByEntity ()

Method getReservationsByEntity.

getSectionIndex

public int getSectionIndex ()

Method getSectionIndex.

getBlockIndex

public int getBlockIndex ()

Method getBlockIndex.