public abstract class MixinBlock extends Object implements org.spongepowered.api.block.BlockType, IMixinBlock
Constructor and Description |
---|
MixinBlock() |
Modifier and Type | Method and Description |
---|---|
boolean |
areStatisticsEnabled() |
void |
callRandomTickEvent(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
Random rand,
org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
org.spongepowered.api.block.BlockState |
getDefaultBlockState()
Gets the default
BlockState as an api representation. |
org.spongepowered.api.block.BlockState |
getDefaultState() |
float |
getEmittedLight() |
abstract boolean |
getEnableStats() |
Optional<org.spongepowered.api.item.ItemBlock> |
getHeldItem() |
String |
getId() |
abstract int |
getLightValue() |
List<org.spongepowered.api.data.manipulator.ImmutableDataManipulator<?,?>> |
getManipulators(net.minecraft.block.state.IBlockState blockState)
Gets all the
ImmutableDataManipulator s for the provided
IBlockState . |
abstract net.minecraft.block.material.Material |
getMaterial() |
String |
getName() |
abstract net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
boolean |
getTickRandomly() |
org.spongepowered.api.text.translation.Translation |
getTranslation() |
abstract String |
getUnlocalizedName() |
boolean |
isAffectedByGravity() |
abstract boolean |
isBlockNormalCube() |
boolean |
isGaseous() |
boolean |
isLiquid() |
boolean |
isReplaceable() |
boolean |
isSolidCube() |
void |
setTickRandomly(boolean tickRandomly) |
abstract net.minecraft.block.state.IBlockState |
shadow$getDefaultState() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicableKeys, getValues, isFlammable, supports
public abstract boolean isBlockNormalCube()
public abstract boolean getEnableStats()
public abstract int getLightValue()
public abstract String getUnlocalizedName()
public abstract net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
public abstract net.minecraft.block.material.Material getMaterial()
public abstract net.minecraft.block.state.IBlockState shadow$getDefaultState()
public String getId()
getId
in interface org.spongepowered.api.CatalogType
public String getName()
getName
in interface org.spongepowered.api.block.BlockType
getName
in interface org.spongepowered.api.CatalogType
public org.spongepowered.api.block.BlockState getDefaultState()
getDefaultState
in interface org.spongepowered.api.block.BlockType
public org.spongepowered.api.text.translation.Translation getTranslation()
getTranslation
in interface org.spongepowered.api.text.translation.Translatable
public boolean isLiquid()
isLiquid
in interface org.spongepowered.api.block.BlockType
public boolean isSolidCube()
isSolidCube
in interface org.spongepowered.api.block.BlockType
public boolean isAffectedByGravity()
isAffectedByGravity
in interface org.spongepowered.api.block.BlockType
public boolean areStatisticsEnabled()
areStatisticsEnabled
in interface org.spongepowered.api.block.BlockType
public float getEmittedLight()
getEmittedLight
in interface org.spongepowered.api.block.BlockType
public boolean getTickRandomly()
getTickRandomly
in interface org.spongepowered.api.block.BlockType
public void setTickRandomly(boolean tickRandomly)
setTickRandomly
in interface org.spongepowered.api.block.BlockType
public void callRandomTickEvent(net.minecraft.world.World world, net.minecraft.util.BlockPos pos, net.minecraft.block.state.IBlockState state, Random rand, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public boolean isReplaceable()
isReplaceable
in interface org.spongepowered.api.block.BlockType
public Optional<org.spongepowered.api.item.ItemBlock> getHeldItem()
getHeldItem
in interface org.spongepowered.api.block.BlockType
public boolean isGaseous()
isGaseous
in interface org.spongepowered.api.block.BlockType
public List<org.spongepowered.api.data.manipulator.ImmutableDataManipulator<?,?>> getManipulators(net.minecraft.block.state.IBlockState blockState)
IMixinBlock
ImmutableDataManipulator
s for the provided
IBlockState
.getManipulators
in interface IMixinBlock
blockState
- The block state being passed inpublic org.spongepowered.api.block.BlockState getDefaultBlockState()
IMixinBlock
BlockState
as an api representation.getDefaultBlockState
in interface IMixinBlock