HyCodeYourTale
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)

protectedString[] aliases
protectedboolean allowsMultipleUsers
protectedString ambientSoundEventId
protectedtransient int ambientSoundEventIndex
protectedRotatedMountPointsArray beds
protectedBench bench
protectedint biomeTintDown
protectedint biomeTintEast
protectedint biomeTintNorth
protectedint biomeTintSouth
protectedint biomeTintUp
protectedint biomeTintWest
protectedString blockBreakingDecalId
protectedHolder<ChunkStore> blockEntity
protectedString blockListAssetId
protectedString blockParticleSetId
protectedString blockSoundSetId
protectedtransient int blockSoundSetIndex
protectedBlockSupportsRequiredForType blockSupportsRequiredFor
protectedConnectedBlockRuleSet connectedBlockRuleSet
protectedShadingMode cubeShadingMode
protectedString customModel
protectedString customModelAnimation
protectedfloat customModelScale
protectedCustomModelTexture[] customModelTexture
protectedint damageToEntities
protectedAssetExtraInfo.Data data
protectedDrawType drawType
protectedShaderType[] effect
protectedFarmingData farming
protectedBlockFlipType flipType
protectedBlockGathering gathering
protectedString group
protectedString hitboxType
protectedtransient int hitboxTypeIndex
protectedString id
protectedboolean ignoreSupportWhenPlaced
protectedString interactionHint
protectedString interactionHitboxType
protectedtransient int interactionHitboxTypeIndex
protectedString interactionSoundEventId
protectedtransient int interactionSoundEventIndex
protectedboolean isDoor
protectedboolean isLooping
protectedboolean isTrigger
protectedColorLight light
protectedBlockMaterial material
protectedint maxSupportDistance
protectedOpacity opacity
protectedColor particleColor
protectedModelParticle[] particles
protectedBlockPlacementSettings placementSettings
protectedString prefabListAssetId
protectedRailConfig railConfig
protectedRandomRotation randomRotation
protectedboolean requiresAlphaBlending
protectedRailConfig[] rotatedRailConfig
protectedtransient Map<BlockFace, RequiredBlockFaceSupport[]>[] rotatedSupport
protectedtransient Map<BlockFace, BlockFaceSupport[]>[] rotatedSupporting
protectedRotation rotationYawPlacementOffset
protectedRotatedMountPointsArray seats
protectedStateData state
protectedMap<BlockFace, RequiredBlockFaceSupport[]> support
protectedSupportDropType supportDropType
protectedMap<BlockFace, BlockFaceSupport[]> supporting
protectedString textureSideMask
protectedBlockTypeTextures[] textures
protectedTickProcedure tickProcedure
protectedColor[] tintDown
protectedColor[] tintEast
protectedColor[] tintNorth
protectedColor[] tintSouth
protectedColor[] tintUp
protectedColor[] tintWest
protectedString transitionTexture
protectedString[] transitionToGroups
protectedString transitionToTag
protectedboolean unknown
protectedVariantRotation variantRotation

Private/Package Fields (3)

privateAssetStore<String, BlockType, BlockTypeAssetMap<String, BlockType>> ASSET_STORE
privatetransient SoftReference<com.hypixel.hytale.protocol.BlockType> cachedPacket
privatetransient String defaultStateKey

Related Classes