Class BasicCulling
java.lang.Object
com.ticxo.modelengine.api.entity.cull.BasicCulling
- All Implemented Interfaces:
ModelCuller
-
Field Summary
FieldsFields inherited from interface com.ticxo.modelengine.api.entity.cull.ModelCuller
PLAYER_CALLBACK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetData()static booleanisGlobalCullExempt(UUID uuid) voidsetData(IEntityData data) static voidsetGlobalCullExempt(UUID uuid, boolean exempt) Globally exempts a player from visibility culling: while exempt, every model the player sees skips vertical/back/blocked culling and is forced toCullType.NO_CULL.void
-
Field Details
-
data
-
lastCulled
protected int lastCulled -
culledCount
protected int culledCount
-
-
Constructor Details
-
BasicCulling
public BasicCulling()
-
-
Method Details
-
setGlobalCullExempt
Globally exempts a player from visibility culling: while exempt, every model the player sees skips vertical/back/blocked culling and is forced toCullType.NO_CULL. Runtime-only; not persisted. -
isGlobalCullExempt
-
updateCulledPlayer
public void updateCulledPlayer()- Specified by:
updateCulledPlayerin interfaceModelCuller
-
put
- Specified by:
putin interfaceModelCuller
-
remove
- Specified by:
removein interfaceModelCuller
-
getData
- Specified by:
getDatain interfaceModelCuller
-
setData
- Specified by:
setDatain interfaceModelCuller
-
getCulledCount
public int getCulledCount()- Specified by:
getCulledCountin interfaceModelCuller
-