Package net.minecraft.block
Class BlockRailBase
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockRailBase
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
- Direct Known Subclasses:
BlockRail
,BlockRailDetector
,BlockRailPowered
public abstract class BlockRailBase extends Block
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockRailBase.EnumRailDirection
class
BlockRailBase.Rail
-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.EnumOffsetType, Block.SoundType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isPowered
-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, forceRender, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, noRender, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlockRailBase(boolean isPowered)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
boolean
canPlaceBlockAt(World world, BlockPos blockpos)
MovingObjectPosition
collisionRayTrace(World worldIn, BlockPos pos, Vec3 start, Vec3 end)
+ Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.protected IBlockState
func_176564_a(World worldIn, BlockPos parBlockPos, IBlockState parIBlockState, boolean parFlag)
EnumWorldBlockLayer
getBlockLayer()
AxisAlignedBB
getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
int
getMobilityFlag()
abstract IProperty<BlockRailBase.EnumRailDirection>
getShapeProperty()
boolean
isFullCube()
boolean
isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for renderstatic boolean
isRailBlock(IBlockState state)
static boolean
isRailBlock(World worldIn, BlockPos pos)
protected void
onNeighborChangedInternal(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock)
void
setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, canCollideCheck, canDropFromExplosion, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, colorMultiplier, colorMultiplier, createBlockState, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMetaFromState, getMixedBrightnessForBlock, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateFromMeta, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTick
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Method Detail
-
isRailBlock
public static boolean isRailBlock(IBlockState state)
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
- Overrides:
getCollisionBoundingBox
in classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCube
in classBlock
-
collisionRayTrace
public MovingObjectPosition collisionRayTrace(World worldIn, BlockPos pos, Vec3 start, Vec3 end)
+ Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.- Overrides:
collisionRayTrace
in classBlock
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
setBlockBoundsBasedOnState
in classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCube
in classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAt
in classBlock
-
onNeighborChangedInternal
protected void onNeighborChangedInternal(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock)
-
func_176564_a
protected IBlockState func_176564_a(World worldIn, BlockPos parBlockPos, IBlockState parIBlockState, boolean parFlag)
-
getMobilityFlag
public int getMobilityFlag()
- Overrides:
getMobilityFlag
in classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayer
in classBlock
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
breakBlock
in classBlock
-
getShapeProperty
public abstract IProperty<BlockRailBase.EnumRailDirection> getShapeProperty()
-
-