万本电子书0元读

万本电子书0元读

顶部广告

Building Minecraft Server Modifications - Second Edition电子书

售       价:¥

27人正在读 | 0人评论 9.8

作       者:Cody M. Sommer

出  版  社:Packt Publishing

出版时间:2015-12-23

字       数:33.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(2条)
  • 读书简介
  • 目录
  • 累计评论(2条)
Create and customize your very own Minecraft server using Java and the Spigot API About This Book Set up a Minecraft server that you control Use object-oriented programming to modify Minecraft regardless of your level of experience This interactive guide will help you create a unique experience for you and your friends Who This Book Is For This book is great for anyone who is interested in customizing their Minecraft server. Whether you are new to programming, Java, Bukkit, or even Minecraft itself, this book has you covered. All you need is a valid Minecraft account. If you are interested in programming as a career or hobby, this book will get you started. If you are simply interested in playing Minecraft with your friends, then this book will help you make that experience even more enjoyable. What You Will Learn Install and run a Spigot server for free on your home PC Adjust the server settings to customize Minecraft to your liking Install an IDE and configure a project to write code Install and test plugins on a Spigot server Test your plugins through debugging the code Program in game commands and permissions Get to know advanced programming concepts such as event-driven programming, configuration files, saving/loading data, and scheduled tasks Implement configuration files to make your plugins customizable Save and load your plugin's data to persist across server restarts In Detail Minecraft is a sandbox game that allows you to play it in any way you want. Coupled with a multiplayer server powered by Spigot, you can customize the game even more! Using the Bukkit API, anyone interested in learning how to program can control their Minecraft world by developing server plugins. This book is a great introduction to software development through the wonderful world of Minecraft. We start by instructing you through how to set up your home PC for Minecraft server development. This includes an IDE complete with the required libraries as well as a Spigot server to test on. You will be guided through writing code for several different plugins. Each chapter teaches you new skills to create plugins of increasing complexity, and each plugin adds a new concept of the Bukkit API By the end of the book, you will have all the knowledge you need about the API to successfully create any type of plugin. You can then practice and build your Java skills through developing more mods for their server. Style and approach This hands-on guide is filled with interactive examples to help you modify Minecraft. Programming terms and concepts are explained along the way so even those who have never written code before can keep up.
目录展开

Building Minecraft Server Modifications Second Edition

Table of Contents

Building Minecraft Server Modifications Second Edition

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Deploying a Spigot Server

Introduction to Spigot

Installing a new Spigot server

Setting up a new server

Minecraft/Bukkit server commands

Port forwarding

Summary

2. Learning the Bukkit API

Introduction to APIs

The Bukkit API documentation

Navigating through the Bukkit API documentation

Understanding the Java documentation

Exploring the Bukkit API

Summary

3. Creating Your First Bukkit Plugin

Installing an IDE

Creating a new project

Adding Bukkit as a library

The essentials of a Bukkit plugin

The plugin.yml file

The plugin's main class

Making and calling new methods

Expanding your code

Summary

4. Testing on the Spigot Server

Building a JAR file

Installing the plugin

Testing your plugin

Testing new versions of the plugin

Debugging the code

Learning from your mistakes

When researching is not enough

Reading the stack trace

Breaking down the code

Adding debug messages

Referring back to the Javadoc

Fixing the bug only after you understand it

Summary

5. Plugin Commands

Adding a command to plugin.yml

Programming the command actions

Assigning the executor for the enchant command

Summary

6. Player Permissions

The benefits of permissions

Understanding permission nodes

Adding a permission node to plugin.yml

Assigning a permission node to a plugin command

Testing player permissions

Using a third-party permissions plugin

Using permission nodes throughout your plugins

Summary

7. The Bukkit Event System

Choosing an event

Registering an event listener

Listening for an event

Canceling an event

Communicating among events

Modifying an event as it occurs

Creating more plugins on your own

Summary

8. Making Your Plugin Configurable

Configurable data types

Writing a config.yml file

Saving, loading, and reloading the config file

Reading and storing the configured values

Using configured settings within your plugin

ItemStack within a configuration

YAML configuration hierarchy

Storing configuration values as variables

Accessing variables from another class

Summary

9. Saving Your Data

Types of data that can be saved

Which data to save and when

A sample teleportation plugin

Writing a ConfigurationSerializable class

Saving data to a YAML configuration

Loading data from a YAML configuration

Summary

10. The Bukkit Scheduler

Creating a BukkitRunnable class

Synchronous versus asynchronous tasks

Running a task from a BukkitRunnable class

Running a task later from a BukkitRunnable class

Running a task timer from a BukkitRunnable class

Writing a repeating task for a plugin

Adding a delayed task to a plugin

Executing code asynchronously

Summary

Index

累计评论(2条) 2个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部