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 longindex
getUpdatedView
public
ResourceView
getUpdatedView
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method getUpdatedView.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
initialiseEntity
Method initialiseEntity.
- Parameters:
@Nonnull final Refref@Nonnull final NPCEntitynpcComponent
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 intxfinal intyfinal intz
reserveBlock
Method reserveBlock.
- Parameters:
@Nonnull final NPCEntityentityfinal intxfinal intyfinal intz
BlockReservation
public
new
BlockReservation
(sectionIndex, blockIndex)
Method BlockReservation.
- Parameters:
sectionIndexsectionIndexblockIndexblockIndex
getIndex
public
long
getIndex
()
Method getIndex.
getReservationsByEntity
public
BlockReservation>
getReservationsByEntity
()
Method getReservationsByEntity.
getSectionIndex
public
int
getSectionIndex
()
Method getSectionIndex.
getBlockIndex
public
int
getBlockIndex
()
Method getBlockIndex.