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 classBlockRailBase.EnumRailDirectionclassBlockRailBase.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 booleanisPowered-
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 protectedBlockRailBase(boolean isPowered)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbreakBlock(World world, BlockPos blockpos, IBlockState iblockstate)booleancanPlaceBlockAt(World world, BlockPos blockpos)MovingObjectPositioncollisionRayTrace(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 IBlockStatefunc_176564_a(World worldIn, BlockPos parBlockPos, IBlockState parIBlockState, boolean parFlag)EnumWorldBlockLayergetBlockLayer()AxisAlignedBBgetCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)intgetMobilityFlag()abstract IProperty<BlockRailBase.EnumRailDirection>getShapeProperty()booleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderstatic booleanisRailBlock(IBlockState state)static booleanisRailBlock(World worldIn, BlockPos pos)protected voidonNeighborChangedInternal(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock)voidsetBlockBoundsBasedOnState(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:
getCollisionBoundingBoxin classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein 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:
collisionRayTracein classBlock
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
setBlockBoundsBasedOnStatein classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCubein classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAtin 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:
getMobilityFlagin classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayerin classBlock
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
breakBlockin classBlock
-
getShapeProperty
public abstract IProperty<BlockRailBase.EnumRailDirection> getShapeProperty()
-
-