classpublicPriority 3
BlockType
com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType
implements JsonAssetWithMap<String, BlockTypeAssetMap<String, BlockType>>, NetworkSerializable
91
Methods
91
Public Methods
82
Fields
7
Constructors
Constants
Map<BlockFace, BlockFaceSupport[]>ALL_SUPPORTING_FACES= <complex>
BlockFaceSupport[]BLOCK_FACE_SUPPORT_ALL_ARRAY= <complex>
AssetBuilderCodec<String, BlockType>CODEC= AssetBuilderCodec.builder(
BlockType.class, BlockType::new, Codec.STRING, (t, k) -> t.id...
BlockTypeDEBUG_CUBE= <complex>
intDEBUG_CUBE_ID= 2
StringDEBUG_CUBE_KEY= "Debug_Cube"
BlockTypeDEBUG_MODEL= <complex>
intDEBUG_MODEL_ID= 3
StringDEBUG_MODEL_KEY= "Debug_Model"
BlockTypeDEFAULT_BLOCK_TYPE= new BlockType()
ShaderType[]DEFAULT_SHADER_EFFECTS= <complex>
BlockTypeEMPTY= <complex>
String[]EMPTY_ALIAS_LIST= new String[0]
intEMPTY_ID= 0
StringEMPTY_KEY= "Empty"
ToIntFunction<ByteBuf>KEY_DESERIALIZER= byteBuf -> {
String blockType = ByteBufUtil.readUTF(byteBuf)
ISectionPalette.KeySerializerKEY_SERIALIZER= (buf, id) -> {
String key = getAssetMap().getAssetOrDefault(id, BlockType.UNKNOWN).getId()
Map<BlockFace, RequiredBlockFaceSupport[]>REQUIRED_BOTTOM_FACE_SUPPORT= Collections.unmodifiableMap(
new EnumMap<BlockFace, RequiredBlockFaceSupport[]>(BlockFace.c...
StringTECHNICAL_BLOCK_GROUP= "@Tech"
BlockTypeUNKNOWN= <complex>
BlockTextures[]UNKNOWN_BLOCK_TEXTURES= <complex>
ModelTexture[]UNKNOWN_CUSTOM_MODEL_TEXTURE= <complex>
intUNKNOWN_ID= 1
StringUNKNOWN_KEY= "Unknown"
StringUNKNOWN_TEXTURE= "BlockTextures/Unknown.png"
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(BlockType::getAssetStore))
Constructors
package-private
BlockType("Empty" ?)package-private
BlockType("Unknown" ?)package-private
BlockType("Debug_Cube" ?)package-private
BlockType("Debug_Model" ?)public
BlockType()public
BlockType(String id)public
BlockType(BlockType other)Methods
Public Methods (91)
public
boolean canBePlacedAsDeco()public
String getAmbientSoundEventId()public
int getAmbientSoundEventIndex()publicstatic
BlockTypeAssetMap<String, BlockType> getAssetMap()publicstatic
AssetStore<String, BlockType, BlockTypeAssetMap<String, BlockType>> getAssetStore()public
RotatedMountPointsArray getBeds()@Nullable
public
Bench getBench()public
int getBiomeTintDown()public
int getBiomeTintEast()public
int getBiomeTintNorth()public
int getBiomeTintSouth()public
int getBiomeTintUp()public
int getBiomeTintWest()public
String getBlockBreakingDecalId()public
void getBlockCenter(int rotationIndex, Vector3d outCenter)public
Holder<ChunkStore> getBlockEntity()publicstatic
int getBlockIdOrUnknown(String blockTypeKey, String message, Object[] params)publicstatic
int getBlockIdOrUnknown(BlockTypeAssetMap<String, BlockType> assetMap, String blockTypeKey, String message, Object[] params)public
String getBlockKeyForState(String state)@Nullable
public
String getBlockListAssetId()public
String getBlockParticleSetId()public
String getBlockSoundSetId()public
int getBlockSoundSetIndex()public
BlockSupportsRequiredForType getBlockSupportsRequiredFor()public
ConnectedBlockRuleSet getConnectedBlockRuleSet()@Nullable
public
String getCustomModel()@Nullable
public
String getCustomModelAnimation()public
float getCustomModelScale()public
CustomModelTexture[] getCustomModelTexture()@Nullable
public
int getDamageToEntities()public
AssetExtraInfo.Data getData()public
String getDefaultStateKey()public
DrawType getDrawType()public
ShaderType[] getEffect()public
FarmingData getFarming()public
BlockFlags getFlags()public
BlockFlipType getFlipType()public
BlockGathering getGathering()public
String getGroup()public
String getHitboxType()public
int getHitboxTypeIndex()public
String getId()public
String getInteractionHint()public
String getInteractionHitboxType()@Nullable
public
int getInteractionHitboxTypeIndex()public
String getInteractionSoundEventId()public
int getInteractionSoundEventIndex()public
Map<InteractionType, String> getInteractions()public
Item getItem()@Nullable
public
ColorLight getLight()public
BlockMaterial getMaterial()public
int getMaxSupportDistance()public
BlockMovementSettings getMovementSettings()public
Opacity getOpacity()public
Color getParticleColor()public
ModelParticle[] getParticles()public
BlockPlacementSettings getPlacementSettings()public
String getPrefabListAssetId()public
RailConfig getRailConfig(int rotationIndex)@Nullable
public
RandomRotation getRandomRotation()public
Rotation getRotationYawPlacementOffset()public
RotatedMountPointsArray getSeats()@Nullable
public
StateData getState()public
String getStateForBlock(BlockType blockType)@Nullable
public
String getStateForBlock(String blockTypeKey)@Nullable
public
Map<BlockFace, RequiredBlockFaceSupport[]> getSupport(int rotationIndex)@Nullable
public
SupportDropType getSupportDropType()public
Map<BlockFace, BlockFaceSupport[]> getSupporting(int rotationIndex)@Nullable
public
String getTextureSideMask()public
BlockTypeTextures[] getTextures()public
TickProcedure getTickProcedure()public
Color[] getTintDown()public
Color[] getTintEast()public
Color[] getTintNorth()public
Color[] getTintSouth()public
Color[] getTintUp()public
Color[] getTintWest()public
String getTransitionTexture()public
String[] getTransitionToGroups()public
VariantRotation getVariantRotation()@Nonnull
public
boolean hasSupport()public
boolean isAllowsMultipleUsers()public
boolean isDoor()@Deprecated
public
boolean isFullySupportive()public
boolean isLooping()public
boolean isState()public
boolean isTrigger()public
boolean isUnknown()public
boolean shouldIgnoreSupportWhenPlaced()public
com.hypixel.hytale.protocol.BlockType toPacket()@Nonnull
public
String toString()@Nonnull@Override
Fields
Protected Fields (79)
protected
String[] aliasesprotected
boolean allowsMultipleUsersprotected
String ambientSoundEventIdprotected
transient int ambientSoundEventIndexprotected
RotatedMountPointsArray bedsprotected
Bench benchprotected
int biomeTintDownprotected
int biomeTintEastprotected
int biomeTintNorthprotected
int biomeTintSouthprotected
int biomeTintUpprotected
int biomeTintWestprotected
String blockBreakingDecalIdprotected
Holder<ChunkStore> blockEntityprotected
String blockListAssetIdprotected
String blockParticleSetIdprotected
String blockSoundSetIdprotected
transient int blockSoundSetIndexprotected
BlockSupportsRequiredForType blockSupportsRequiredForprotected
ConnectedBlockRuleSet connectedBlockRuleSetprotected
ShadingMode cubeShadingModeprotected
String customModelprotected
String customModelAnimationprotected
float customModelScaleprotected
CustomModelTexture[] customModelTextureprotected
int damageToEntitiesprotected
AssetExtraInfo.Data dataprotected
DrawType drawTypeprotected
ShaderType[] effectprotected
FarmingData farmingprotected
BlockFlipType flipTypeprotected
BlockGathering gatheringprotected
String groupprotected
String hitboxTypeprotected
transient int hitboxTypeIndexprotected
String idprotected
boolean ignoreSupportWhenPlacedprotected
String interactionHintprotected
String interactionHitboxTypeprotected
transient int interactionHitboxTypeIndexprotected
String interactionSoundEventIdprotected
transient int interactionSoundEventIndexprotected
boolean isDoorprotected
boolean isLoopingprotected
boolean isTriggerprotected
ColorLight lightprotected
BlockMaterial materialprotected
int maxSupportDistanceprotected
Opacity opacityprotected
Color particleColorprotected
ModelParticle[] particlesprotected
BlockPlacementSettings placementSettingsprotected
String prefabListAssetIdprotected
RailConfig railConfigprotected
RandomRotation randomRotationprotected
boolean requiresAlphaBlendingprotected
RailConfig[] rotatedRailConfigprotected
transient Map<BlockFace, RequiredBlockFaceSupport[]>[] rotatedSupportprotected
transient Map<BlockFace, BlockFaceSupport[]>[] rotatedSupportingprotected
Rotation rotationYawPlacementOffsetprotected
RotatedMountPointsArray seatsprotected
StateData stateprotected
Map<BlockFace, RequiredBlockFaceSupport[]> supportprotected
SupportDropType supportDropTypeprotected
Map<BlockFace, BlockFaceSupport[]> supportingprotected
String textureSideMaskprotected
BlockTypeTextures[] texturesprotected
TickProcedure tickProcedureprotected
Color[] tintDownprotected
Color[] tintEastprotected
Color[] tintNorthprotected
Color[] tintSouthprotected
Color[] tintUpprotected
Color[] tintWestprotected
String transitionTextureprotected
String[] transitionToGroupsprotected
String transitionToTagprotected
boolean unknownprotected
VariantRotation variantRotationPrivate/Package Fields (3)
private
AssetStore<String, BlockType, BlockTypeAssetMap<String, BlockType>> ASSET_STOREprivate
transient SoftReference<com.hypixel.hytale.protocol.BlockType> cachedPacketprivate
transient String defaultStateKey