当前位置: 首页>>代码示例>>Java>>正文


Java BlockState类代码示例

本文整理汇总了Java中net.minecraft.block.state.BlockState的典型用法代码示例。如果您正苦于以下问题:Java BlockState类的具体用法?Java BlockState怎么用?Java BlockState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BlockState类属于net.minecraft.block.state包,在下文中一共展示了BlockState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return this.isDouble() ? new BlockState(this, new IProperty[] {VARIANT}): new BlockState(this, new IProperty[] {HALF, VARIANT});
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:BlockWoodSlab.java

示例2: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING, HALF, SHAPE});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockStairs.java

示例3: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {CONTENTS, LEGACY_DATA});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockFlowerPot.java

示例4: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING, EYE});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockEndPortalFrame.java

示例5: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {MOISTURE});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockFarmland.java

示例6: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {NORTH, EAST, WEST, SOUTH});
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:BlockFence.java

示例7: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {WET});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockSponge.java

示例8: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {AXIS});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockPortal.java

示例9: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {SNOWY});
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:BlockMycelium.java

示例10: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING});
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:BlockLadder.java

示例11: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING, PART, OCCUPIED});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockBed.java

示例12: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {VARIANT});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockSand.java

示例13: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {POWERED, SUSPENDED, ATTACHED, DISARMED, NORTH, EAST, WEST, SOUTH});
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:BlockTripWire.java

示例14: createBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {UP, NORTH, EAST, SOUTH, WEST});
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:BlockVine.java

示例15: getBlockState

import net.minecraft.block.state.BlockState; //导入依赖的package包/类
public BlockState getBlockState()
{
    return this.blockState;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:Block.java


注:本文中的net.minecraft.block.state.BlockState类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。